Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Git.pm: Handle failed commands' output
[gitweb.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index 1cf6276ad8fdfa957bd7b3734494467c40e74962..880fb7bb30b75d9c5bb6a8aa037a6048cba5c922 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-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)