summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f88fcf8)
raw | patch | inline | side by side (parent: f88fcf8)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Fri, 12 Aug 2005 03:17:55 +0000 (23:17 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 12 Aug 2005 05:08:29 +0000 (22:08 -0700) |
In the case where we don't know from context what type an object is, but
we don't have to fetch it, we need to parse it to determine the type
before processing it.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
we don't have to fetch it, we need to parse it to determine the type
before processing it.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pull.c | patch | blob | history |
index cf3ec7384160916c395e77d999cb7fe5ec16cea3..e7bf83bb035f7613d0cb57ca3254e24141608382 100644 (file)
--- a/pull.c
+++ b/pull.c
{
struct object *obj = lookup_object_type(sha1, type);
if (has_sha1_file(sha1)) {
+ parse_object(sha1);
/* We already have it, so we should scan it now. */
return process_object(obj);
}