BUG - Diffing some merge commits was causing nasty errors. Diffing only the first parent for now.

This commit is contained in:
Correl Roush 2010-11-19 10:00:52 -05:00
parent 95477c9dc1
commit 6b747d99cb

View file

@ -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):