summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-01-11 18:52:53 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-01-11 18:52:53 +0100
commit360dbb47fa1cca4ed5cfc4fa3f48255f3d2c5b27 (patch)
tree3128846a033b5b41b56bbfb5afa998324d6f63f6
parente8a76ccd1fb1bb5126957d38519b97b3fc408f38 (diff)
Fixed "show" not returning the correct commit.
-rwxr-xr-xgitnoti.py2
1 files changed, 1 insertions, 1 deletions
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 []