summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gitnoti.py b/gitnoti.py
index 0e51bd5..9759c43 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -215,11 +215,7 @@ class Bot(irc.IRCClient):
if heads[0].name == branch:
return heads[0]
- heads = [h for h in repo.heads if h.name.startswith(branch)]
-
- if not len(heads):
- self.msg(target, 'No branches matches "%s".' % branch)
- elif len(heads) > 1:
+ if len(heads) > 1:
self.msg(target, 'Ambiguous name: %s' % (', '.join([h.name for h in heads])))
else:
return heads[0]