--- /dev/null
+#!/bin/sh
+#
+# Delegates to post-receive-email and post-receive-trac
+#
+
+input=""
+while read line ; do
+ input="$input$line"
+done
+
+echo $input | sh hooks/post-receive-email
+echo $input | sh hooks/post-receive-trac
+
--- /dev/null
+#!/bin/sh
+
+export LD_LIBRARY_PATH=/home/BIPFS/shaberman/local/lib
+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
+ else
+ git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $oldrev..$newrev
+ fi | while read com ; do
+ /home/BIPFS/shaberman/local/bin/python /srv/git/hooks/trac-post-commit-hook.py -p "$TRAC_ENV" -r "$com"
+ done
+done
+
+exit 0
+
+++ /dev/null
-#!/bin/bash
-
-export LD_LIBRARY_PATH=/home/BIPFS/shaberman/local/lib
-TRAC_ENV=/srv/trac/cbas
-
-while read oldrev newrev refname ; do
- if expr "$oldrev" : '0*$' >/dev/null
- then
- # git-rev-list "$newrev"
- git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $newrev
- else
- # git-rev-list "$newrev" "^$oldrev"
- git rev-parse --not --branches | grep -v $(git rev-parse $refname) | git rev-list --stdin $oldrev..$newrev
- fi | while read com ; do
- /home/BIPFS/shaberman/local/bin/python /srv/git/hooks/trac-post-commit-hook.py -p "$TRAC_ENV" -r "$com"
- done
-done
-
-exit 0