Putting the comments back.
[git-central.git] / server / post-receive-trac
1 #!/bin/sh
2
3 export LD_LIBRARY_PATH=/home/BIPFS/shaberman/local/lib
4 TRAC_ENV=/srv/trac/cbas
5
6 while read oldrev newrev refname ; do
7         if expr "$oldrev" : '0*$' >/dev/null
8         then
9                 git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $newrev
10         else
11                 git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $oldrev..$newrev
12         fi | while read commit ; do
13                 /home/BIPFS/shaberman/local/bin/python /srv/git/hooks/server/post-receive-trac.py "$TRAC_ENV" "$commit"
14         done
15 done
16
17 exit 0
18