projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1495400
)
Fix git hook to avoid the shell misinterpreting ^revision as a glob
author
Tom Hughes
<tom@compton.nu>
Mon, 21 Nov 2016 13:51:14 +0000
(13:51 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 21 Nov 2016 13:51:44 +0000
(13:51 +0000)
cookbooks/git/templates/default/post-receive.erb
patch
|
blob
|
history
diff --git
a/cookbooks/git/templates/default/post-receive.erb
b/cookbooks/git/templates/default/post-receive.erb
index 52075a0176805b707ac4ae4c525fb84418d51fc4..30ade27191aff5343ed8667aed81d359db7b528d 100644
(file)
--- 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} ^${old
rev})
+ for rev in $(git rev-list ${
oldrev}..${new
rev})
do
sudo -u trac /usr/bin/trac-admin /var/lib/trac changeset added "<%= @repository %>" "${rev}"
done