projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Find size of SHA1 object without inflating everything.
[git.git]
/
tag.c
diff --git
a/tag.c
b/tag.c
index
22deb24
..
26494ca
100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-13,6
+13,8
@@
struct tag *lookup_tag(unsigned char *sha1)
ret->object.type = tag_type;
return ret;
}
ret->object.type = tag_type;
return ret;
}
+ if (!obj->type)
+ obj->type = tag_type;
if (obj->type != tag_type) {
error("Object %s is a %s, not a tree",
sha1_to_hex(sha1), obj->type);
if (obj->type != tag_type) {
error("Object %s is a %s, not a tree",
sha1_to_hex(sha1), obj->type);