#!/bin/zsh

# DO NOT EDIT - This file is being maintained by Chef

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

#!/bin/zsh

# DO NOT EDIT - This file is being maintained by Chef

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

Fix git hook to avoid the shell misinterpreting ^revision as a glob
Fix git hook to avoid the shell misinterpreting ^revision as a glob
