X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=rev-tree.c;h=ebeceb070b72744b47873c0a562d3ec692269a96;hb=ca016f0e4e7e508407fe17e121fcd520fbb7c865;hp=c3884e3595cd00f8c1108429060ed195f7506514;hpb=b51ad4314078298194d23d46e2b4473ffd32a88a;p=git.git diff --git a/rev-tree.c b/rev-tree.c index c3884e35..ebeceb07 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;