summaryrefslogtreecommitdiffstats
path: root/trace.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--trace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/trace.c b/trace.c
index e6728c301f..d8c43773ae 100644
--- a/trace.c
+++ b/trace.c
@@ -25,7 +25,6 @@
#include "git-compat-util.h"
#include "abspath.h"
-#include "environment.h"
#include "repository.h"
#include "quote.h"
#include "setup.h"
@@ -308,7 +307,7 @@ void trace_repo_setup(void)
cwd = xgetcwd();
- if (!(git_work_tree = get_git_work_tree()))
+ if (!(git_work_tree = repo_get_work_tree(the_repository)))
git_work_tree = "(null)";
if (!startup_info->prefix)