I am trying to do a post-receive hook on server side that will run some Python script once for each commit in push.
I have a loop:
while read oldrev newrev refname
do
python /local/Git/util.py $newrev $oldrev $refname
done
But this runs script only for last commit that was given in push.
There is any way to run script for all commits pushed to the server in one push?