]> git.droids-corp.org - git-central.git/commitdiff
Reverse the order so the trac comments match the commits in chronological order.
authorStephen Haberman <stephen@exigencecorp.com>
Thu, 10 Jul 2008 03:00:50 +0000 (22:00 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Thu, 10 Jul 2008 03:00:50 +0000 (22:00 -0500)
server/post-receive-trac

index a67e1e52eb6c2864728f008a6b6a329272ec001a..11f5ac7072b2759d2b24965cabe379058b9c5aa5 100644 (file)
@@ -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