From 850f1dec29be409b9d2d5f8c78bca28581c081b2 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 25 Apr 2010 18:00:26 +0200 Subject: Fetch the correct commit in repo_commit_msg. --- gitnoti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '', -- cgit v1.2.3