summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gitnoti.py b/gitnoti.py
index 66ca98a..3324c21 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -243,8 +243,7 @@ class Bot(irc.IRCClient):
def get_commits(self, repo, name):
try:
if '..' in name:
- frm, to = name.split('..')
- commits = list(repo.iter_commits('%s..%s' % (frm, to)))
+ commits = list(repo.iter_commits(name))
else:
commits = [repo.commit(name)]
except ValueError: