do
if [[ "$refname" = "refs/heads/master" ]]
then
- for rev in $(git rev-list ${newrev} ^${oldrev})
+ for rev in $(git rev-list ${oldrev}..${newrev})
do
sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "<%= @repository %>" "${rev}"
done