]> Kevux Git Server - rit/commitdiff
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 fe8cfa0..c97a427 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;