From 1149740bc2f233b7b1536e3dcbb4d6352493db29 Mon Sep 17 00:00:00 2001 From: Stephen Haberman Date: Wed, 9 Jul 2008 22:00:50 -0500 Subject: [PATCH] Reverse the order so the trac comments match the commits in chronological order. --- server/post-receive-trac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5