X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit-tree.c;h=b1c8dca48d803d06c3340df32fcaa57c291ce32d;hb=5b5d4d9e1b31997b3179e6a253d47b7eea03d0fa;hp=ea0fdd44e2865e63c6e4750345a30c42e699cf66;hpb=2b2dabc29f53c5835868029585000ee487cf6cbb;p=git.git diff --git a/commit-tree.c b/commit-tree.c index ea0fdd44..b1c8dca4 100644 --- a/commit-tree.c +++ b/commit-tree.c @@ -5,9 +5,6 @@ */ #include "cache.h" -#include -#include - #define BLOCKING (1ul << 14) /* @@ -89,6 +86,8 @@ int main(int argc, char **argv) unsigned int size; setup_ident(); + setup_git_directory(); + git_config(git_default_config); if (argc < 2 || get_sha1_hex(argv[1], tree_sha1) < 0)