X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..9ccf1f1bfd060a8abadf5c9f1a99a188abfb45c8:/cookbooks/git/templates/default/post-receive.erb diff --git a/cookbooks/git/templates/default/post-receive.erb b/cookbooks/git/templates/default/post-receive.erb index 52075a017..30ade2719 100644 --- a/cookbooks/git/templates/default/post-receive.erb +++ b/cookbooks/git/templates/default/post-receive.erb @@ -6,7 +6,7 @@ while read oldrev newrev refname 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