summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-10-20 17:24:49 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-10-20 17:24:49 +0200
commit2b20521a9418aaa0e8e8323689387f59ac3ea34e (patch)
treea60a56514cd19e11013588d885601ba9adc332a6
parentd73c968545efa0586a32f7aa6aae64214c270376 (diff)
Remove unnecessary split in get_commits().
-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: