summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rev-tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rev-tree.c b/rev-tree.c
index c3884e3595..ebeceb070b 100644
--- a/rev-tree.c
+++ b/rev-tree.c
@@ -55,6 +55,10 @@ void process_commit(unsigned char *sha1)
{
struct commit_list *parents;
struct commit *obj = lookup_commit(sha1);
+
+ if (obj->object.parsed)
+ return;
+
parse_commit(obj);
parents = obj->parents;