Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make git-clone to take long double-dashed origin option (--origin)
[gitweb.git]
/
unpack-file.c
diff --git
a/unpack-file.c
b/unpack-file.c
index b7988c5575fabd57100d25742a1d0578bcc181d7..3accb974dd448233a01e82ab1d6e3599d825fa9e 100644
(file)
--- a/
unpack-file.c
+++ b/
unpack-file.c
@@
-27,7
+27,10
@@
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();
+ git_config(git_default_config);
puts(create_temp_file(sha1));
return 0;