summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin-fetch-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-fetch-pack.c b/builtin-fetch-pack.c
index fe8cfa0cb8..c97a42739d 100644
--- a/builtin-fetch-pack.c
+++ b/builtin-fetch-pack.c
@@ -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;