Documentation: revise top of git man page
[gitweb.git] / unpack-file.c
index 6ff3d51c182627f42b104932ecea9b95d6225a5d..3accb974dd448233a01e82ab1d6e3599d825fa9e 100644 (file)
@@ -26,8 +26,11 @@ int main(int argc, char **argv)
 {
        unsigned char sha1[20];
 
-       if (argc != 2 || get_sha1_hex(argv[1], sha1))
-               usage("unpack-file.c <sha1>");
+       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;