Skip to content

Commit

Permalink
[PATCH] Also parse objects we already have
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Barkalow authored and Junio C Hamano committed Aug 12, 2005
1 parent f88fcf8 commit 0d62fb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static int process(unsigned char *sha1, const char *type)
{
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);
}
Expand Down

0 comments on commit 0d62fb5

Please sign in to comment.