aboutsummaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-06-06 15:43:24 -0700
committerJunio C Hamano <gitster@pobox.com>2007-06-06 15:43:24 -0700
commitd44c782bbd6b0e806e056f9e8ff8cd8e426e67a3 (patch)
treeca47f19971689badb2b644d038a72f4b0d9d8f13 /object.c
parentf07dfbad29d473b35b5fecebf4baf77e32c7f97f (diff)
parente2ac7cb5fbcf1407003aa07cdcd14141527ea2e3 (diff)
downloadgit-d44c782bbd6b0e806e056f9e8ff8cd8e426e67a3.tar.gz
git-d44c782bbd6b0e806e056f9e8ff8cd8e426e67a3.tar.xz
Merge branch 'sv/objfixes'
* sv/objfixes: Don't assume tree entries that are not dirs are blobs git-cvsimport: Make sure to use $git_dir always instead of .git sometimes fix documentation of unpack-objects -n Accept dates before 2000/01/01 when specified as seconds since the epoch
Diffstat (limited to 'object.c')
-rw-r--r--object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/object.c b/object.c
index cfc4969ed..16793d995 100644
--- a/object.c
+++ b/object.c
@@ -160,8 +160,11 @@ struct object *parse_object_buffer(const unsigned char *sha1, enum object_type t
parse_tag_buffer(tag, buffer, size);
obj = &tag->object;
} else {
+ warning("object %s has unknown type id %d\n", sha1_to_hex(sha1), type);
obj = NULL;
}
+ if (obj && obj->type == OBJ_NONE)
+ obj->type = type;
*eaten_p = eaten;
return obj;
}