Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Fix git-pack-objects for 64-bit platforms
[gitweb.git]
/
ls-tree.c
diff --git
a/ls-tree.c
b/ls-tree.c
index e4ef200985030e8dee6f23dbe723bfa476160db0..f2b3bc1231b7fdfd7277974fc5a5708ceef9cbaf 100644
(file)
--- a/
ls-tree.c
+++ b/
ls-tree.c
@@
-142,8
+142,8
@@
int main(int argc, const char **argv)
if (argc < 2)
usage(ls_tree_usage);
- if (get_sha1(argv[1], sha1)
< 0
)
-
usage(ls_tree_usage
);
+ if (get_sha1(argv[1], sha1))
+
die("Not a valid object name %s", argv[1]
);
pathspec = get_pathspec(prefix, argv + 2);
tree = parse_tree_indirect(sha1);