diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-28 20:37:14 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-28 20:37:14 +0100 |
commit | 55582f497e0e0629f13a03165b59ca033cb4a207 (patch) | |
tree | 2c89c2f3cae51fc5c23cb6eb1787963270bf3f7d | |
parent | ab1837d824ae1adc5eb32b928200ac673da218e7 (diff) |
Assume initial commit or orphan branch when no 'last' commit is set or no parents exists.
-rwxr-xr-x | gitnoti.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -165,8 +165,8 @@ class ReposNotifyEvent(pyinotify.ProcessEvent): commits = list(repo.iter_commits('%s..%s' % (last, h.name))) elif len(h.commit.parents): # Check against parent commit commits = list(repo.iter_commits('%s..%s' % (h.commit.parents[0], h.name))) - else: # No valid commits to check against - continue + else: # Initial commit or orphan branch was pushed + commits = list(repo.iter_commits(h.name)) if not len(commits): # No commits continue |