Skip to content

Commit 0d62fb5

Browse files
iabervonJunio C Hamano
authored andcommitted
[PATCH] Also parse objects we already have
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f88fcf8 commit 0d62fb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pull.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static int process(unsigned char *sha1, const char *type)
127127
{
128128
struct object *obj = lookup_object_type(sha1, type);
129129
if (has_sha1_file(sha1)) {
130+
parse_object(sha1);
130131
/* We already have it, so we should scan it now. */
131132
return process_object(obj);
132133
}

0 commit comments

Comments
 (0)