Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-tree: avoid lookup_unknown_object
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index dc457742eade241ec6b0001580d1ce1a880fee31..7343565354f2bfe2338264ad6acfa3117fc653f7 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-1531,9
+1531,8
@@
static enum peel_status peel_object(const unsigned char *name, unsigned char *sh
if (o->type == OBJ_NONE) {
int type = sha1_object_info(name, NULL);
- if (type < 0)
+ if (type < 0
|| !object_as_type(o, type, 0)
)
return PEEL_INVALID;
- o->type = type;
}
if (o->type != OBJ_TAG)