aboutsummaryrefslogtreecommitdiff
path: root/tag.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2005-05-20 16:59:17 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-20 15:41:45 -0700
commitd1af002dc608be3213ba18df1a99ced0ab42e6d6 (patch)
tree191c45603eb3bc4aca09df7721bef8c740786ed5 /tag.c
parent91d7b8afc2dc8bacde2012ad076cd8d0c4d36697 (diff)
downloadgit-d1af002dc608be3213ba18df1a99ced0ab42e6d6.tar.gz
git-d1af002dc608be3213ba18df1a99ced0ab42e6d6.tar.xz
[PATCH] delta check
This adds knowledge of delta objects to fsck-cache and various object parsing code. A new switch to git-fsck-cache is provided to display the maximum delta depth found in a repository. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag.c b/tag.c
index 22deb243a..26494ca96 100644
--- a/tag.c
+++ b/tag.c
@@ -13,6 +13,8 @@ struct tag *lookup_tag(unsigned char *sha1)
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);