]> git.openstreetmap.org Git - chef.git/blob - cookbooks/git/templates/default/post-receive.erb
Use variable to enable readonly mode, as was used in the previous version of the...
[chef.git] / cookbooks / git / templates / default / post-receive.erb
1 #!/bin/zsh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 while read oldrev newrev refname
6 do
7   if [[ "$refname" = "refs/heads/master" ]]
8   then
9     for rev in $(git rev-list ${newrev} ^${oldrev})
10     do
11       sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "<%= @repository %>" "${rev}"
12     done
13   fi
14 done