diff options
Diffstat (limited to 'builtin/write-tree.c')
-rw-r--r-- | builtin/write-tree.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/write-tree.c b/builtin/write-tree.c index 078010315f..84b83318c9 100644 --- a/builtin/write-tree.c +++ b/builtin/write-tree.c @@ -7,9 +7,13 @@ #include "builtin.h" #include "cache.h" #include "config.h" +#include "environment.h" +#include "gettext.h" +#include "hex.h" #include "tree.h" #include "cache-tree.h" #include "parse-options.h" +#include "repository.h" static const char * const write_tree_usage[] = { N_("git write-tree [--missing-ok] [--prefix=<prefix>/]"), @@ -38,6 +42,9 @@ int cmd_write_tree(int argc, const char **argv, const char *cmd_prefix) argc = parse_options(argc, argv, cmd_prefix, write_tree_options, write_tree_usage, 0); + prepare_repo_settings(the_repository); + the_repository->settings.command_requires_full_index = 0; + ret = write_index_as_tree(&oid, &the_index, get_index_file(), flags, tree_prefix); switch (ret) { |