From 620333a07e91c4885dec469e5382d8d242a3a34e Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 28 Sep 2010 15:12:36 +0200 Subject: get_repo() should output sane repo names when given ambiguous names. --- gitnoti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnoti.py b/gitnoti.py index 3e8b844..09c5281 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -211,7 +211,7 @@ class Bot(irc.IRCClient): elif len(repo) == 0: self.msg(target, 'No repo found.') else: - self.msg(target, 'Ambiguous name: %s' % (', '.join([os.path.basename(x[0]) for x in repo]))) + self.msg(target, 'Ambiguous name: %s' % (', '.join([os.path.splitext(os.path.basename(x[0]))[0] for x in repo]))) return None -- cgit v1.2.3