Optionally do not list empty directories in git-ls-files --others
[gitweb.git] / unpack-file.c
index d4ac3a5460568408f96fc26e5228c639dfc20439..3accb974dd448233a01e82ab1d6e3599d825fa9e 100644 (file)
@@ -29,6 +29,9 @@ int main(int argc, char **argv)
        if (argc != 2 || get_sha1(argv[1], sha1))
                usage("git-unpack-file <sha1>");
 
+       setup_git_directory();
+       git_config(git_default_config);
+
        puts(create_temp_file(sha1));
        return 0;
 }