git wrapper: more careful argument stuffing
[gitweb.git] / unpack-file.c
index b7988c5575fabd57100d25742a1d0578bcc181d7..07303f8bb3ef2b93f3e7c9bbe116aef9660584d5 100644 (file)
@@ -27,7 +27,9 @@ int main(int argc, char **argv)
        unsigned char sha1[20];
 
        if (argc != 2 || get_sha1(argv[1], sha1))
-               usage("unpack-file.c <sha1>");
+               usage("git-unpack-file <sha1>");
+
+       setup_git_directory();
 
        puts(create_temp_file(sha1));
        return 0;