Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Strip any trailing slash on destination argument
[gitweb.git]
/
unpack-file.c
diff --git
a/unpack-file.c
b/unpack-file.c
index 6ff3d51c182627f42b104932ecea9b95d6225a5d..d4ac3a5460568408f96fc26e5228c639dfc20439 100644
(file)
--- a/
unpack-file.c
+++ b/
unpack-file.c
@@
-26,8
+26,8
@@
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>");
puts(create_temp_file(sha1));
return 0;