mirror of
https://github.com/correl/codereview.git
synced 2024-11-23 19:19:50 +00:00
BUG - Diffing some merge commits was causing nasty errors. Diffing only the first parent for now.
This commit is contained in:
parent
95477c9dc1
commit
6b747d99cb
1 changed files with 4 additions and 1 deletions
|
@ -164,7 +164,10 @@ class Git(VCS):
|
||||||
result = []
|
result = []
|
||||||
b = self._repo.commit(b)
|
b = self._repo.commit(b)
|
||||||
if not a:
|
if not a:
|
||||||
a = b.parents
|
# FIXME:
|
||||||
|
# Only using the first parent for now. Some merge commits seem to be
|
||||||
|
# causing nasty problems, while others diff just fine.
|
||||||
|
a = b.parents[:1]
|
||||||
else:
|
else:
|
||||||
a = self._repo.commit(a)
|
a = self._repo.commit(a)
|
||||||
for diff in b.diff(a):
|
for diff in b.diff(a):
|
||||||
|
|
Loading…
Reference in a new issue