Git.pm: Handle failed commands' output
[gitweb.git] / revision.c
index 1cf6276ad8fdfa957bd7b3734494467c40e74962..880fb7bb30b75d9c5bb6a8aa037a6048cba5c922 100644 (file)
@@ -997,7 +997,7 @@ struct commit *get_revision(struct rev_info *revs)
                                if (!revs->parents)
                                        continue;
                                /* non-merge - always ignore it */
-                               if (commit->parents && !commit->parents->next)
+                               if (!commit->parents || !commit->parents->next)
                                        continue;
                        }
                        if (revs->parents)