From 360dbb47fa1cca4ed5cfc4fa3f48255f3d2c5b27 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 11 Jan 2010 18:52:53 +0100 Subject: Fixed "show" not returning the correct commit. --- gitnoti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitnoti.py b/gitnoti.py index 149493b..61726f5 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -193,7 +193,7 @@ class Bot(irc.IRCClient): frm, to = name.split('..') commits = list(repo.commits_between(frm, to)) else: - commits = repo.commits(name) + commits = repo.commits(name)[:1] except git.errors.GitCommandError: return [] -- cgit v1.2.3