X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit-tree.c;h=b1c8dca48d803d06c3340df32fcaa57c291ce32d;hb=4788d11a0d2ff872d25840768b2266e936a0b1fc;hp=ea0fdd44e2865e63c6e4750345a30c42e699cf66;hpb=f865a2ad981f72423aa1c19412ce57c543801957;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)