mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Fix AttributeError thrown when no extensions were detected (Fixes #91).
The bug was introduced with the commit ecc67a3
and was caused by the
initialization of an empty Changes object.
This fix makes sure that the __iadd__() method properly handles empty
change sets and returns a satisfactory object back when completing
execution.
This commit is contained in:
parent
3c48789890
commit
ba049a0367
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,8 @@ class Changes(object):
|
|||
|
||||
for commit in other.commits:
|
||||
bisect.insort(self.commits, commit)
|
||||
if not self.commits and not other.commits:
|
||||
self.commits = []
|
||||
|
||||
return self
|
||||
except AttributeError:
|
||||
|
|
Loading…
Reference in a new issue