From: Stephen Haberman Date: Thu, 10 Jul 2008 03:00:50 +0000 (-0500) Subject: Reverse the order so the trac comments match the commits in chronological order. X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1149740bc2f233b7b1536e3dcbb4d6352493db29;p=git-central.git Reverse the order so the trac comments match the commits in chronological order. --- diff --git a/server/post-receive-trac b/server/post-receive-trac index a67e1e5..11f5ac7 100644 --- a/server/post-receive-trac +++ b/server/post-receive-trac @@ -6,9 +6,9 @@ TRAC_ENV=/srv/trac/cbas while read oldrev newrev refname ; do if expr "$oldrev" : '0*$' >/dev/null then - git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $newrev + git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --reverse --stdin $newrev else - git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $oldrev..$newrev + git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --reverse --stdin $oldrev..$newrev fi | while read commit ; do /home/BIPFS/shaberman/local/bin/python /srv/git/hooks/server/post-receive-trac.py "$TRAC_ENV" "$commit" done