Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/submodule-fsck-loose' into maint
[gitweb.git]
/
builtin
/
describe.c
diff --git
a/builtin/describe.c
b/builtin/describe.c
index c4289847063ac02ed061f890ffd71cd329d67109..e4869df7b434845544dfcc0c37cae6a77cd42dad 100644
(file)
--- a/
builtin/describe.c
+++ b/
builtin/describe.c
@@
-502,7
+502,7
@@
static void describe(const char *arg, int last_one)
if (cmit)
describe_commit(&oid, &sb);
- else if (
lookup_blob(&oid)
)
+ else if (
sha1_object_info(oid.hash, NULL) == OBJ_BLOB
)
describe_blob(oid, &sb);
else
die(_("%s is neither a commit nor blob"), arg);