aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/write-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/write-tree.c')
-rw-r--r--builtin/write-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/write-tree.c b/builtin/write-tree.c
index de4ebf767d..43f233e69b 100644
--- a/builtin/write-tree.c
+++ b/builtin/write-tree.c
@@ -6,7 +6,6 @@
#define USE_THE_REPOSITORY_VARIABLE
#include "builtin.h"
#include "config.h"
-#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "tree.h"
@@ -46,7 +45,8 @@ int cmd_write_tree(int argc,
prepare_repo_settings(the_repository);
the_repository->settings.command_requires_full_index = 0;
- ret = write_index_as_tree(&oid, the_repository->index, get_index_file(),
+ ret = write_index_as_tree(&oid, the_repository->index,
+ repo_get_index_file(the_repository),
flags, tree_prefix);
switch (ret) {
case 0: