Code

fetch-pack: brown paper bag fix
authorJunio C Hamano <gitster@pobox.com>
Wed, 30 Apr 2008 18:42:05 +0000 (11:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Apr 2008 18:42:05 +0000 (11:42 -0700)
When I applied Linus's patch from the list by hand somehow I ended
up reversing the logic by mistake.  This fixes it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch-pack.c

index fe8cfa0cb899d0db2f572e4fcf859dea9e895197..c97a42739d23ac7ed90ae207e5a3770c388e66a7 100644 (file)
@@ -123,7 +123,7 @@ static const unsigned char* get_rev(void)
                        return NULL;
 
                commit = rev_list->item;
-               if (commit->object.parsed)
+               if (!commit->object.parsed)
                        parse_commit(commit);
                parents = commit->parents;