Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (19 sloc) 433 Bytes
#!/bin/bash
# ignore tag push
if [[ "$3" == "refs/tags/"* ]]; then
exit 0
fi
while read oldrev newrev refname
do
for rev in $(git rev-list ${oldrev}..${newrev})
do
log=`git show -s --format="%s" $rev`
author=`git show -s --format="%an" $rev`
./hooks/redmine-add-change-log.php "${log}" "${author}" "${rev}"
if [ $? != 0 ]
then
exit $?
fi
done
done
exit 0