summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-04-25 18:00:26 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-04-25 18:00:26 +0200
commit850f1dec29be409b9d2d5f8c78bca28581c081b2 (patch)
tree59439e6bf8a924531e251fb8ad5a32dc9da3fdbd
parent6d64b0be7df342d114b31427e03fc99d28b74e4f (diff)
Fetch the correct commit in repo_commit_msg.
-rwxr-xr-xgitnoti.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitnoti.py b/gitnoti.py
index 9759c43..d275261 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -54,7 +54,7 @@ def repo_commit_msg(repo, branch, commits):
stat += ' \00305--%d\017' % deletions
stat += ' \00303++%d\017' % insertions
- commit = commits[-1]
+ commit = commits[0]
msg = '\002%s%s\002 pushed to \002%s\002 by \002%s\002 (%s) %s' % (
reponame,
('/'+branch) if branch else '',