From 2b20521a9418aaa0e8e8323689387f59ac3ea34e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 20 Oct 2010 17:24:49 +0200 Subject: Remove unnecessary split in get_commits(). --- gitnoti.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3