diff options
-rwxr-xr-x | gitnoti.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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] |