From d4b4cf6014c588854b706b5833d5c212bfcca4c0 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sun, 29 Mar 2015 13:55:07 +0000 Subject: [PATCH] (fedmsg) Publish git commits in chronological order. We currently publish them newest to oldest which can be really confusing if you receive them over email. @remicollet pointed this out in ``#fedora-devel`` last week. See https://github.com/fedora-infra/fedmsg/pull/328 --- roles/git/hooks/files/post-receive-fedmsg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/git/hooks/files/post-receive-fedmsg b/roles/git/hooks/files/post-receive-fedmsg index 5ad22d1e04..699f4e94a8 100755 --- a/roles/git/hooks/files/post-receive-fedmsg +++ b/roles/git/hooks/files/post-receive-fedmsg @@ -118,7 +118,7 @@ for line in lines: commits = map(_build_commit, revs) print "* Publishing information for %i commits" % len(commits) - for commit in commits: + for commit in reversed(commits): if commit is None: continue