summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 []