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