summaryrefslogtreecommitdiffstats
path: root/libexec/post-receive.d
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/post-receive.d')
-rwxr-xr-xlibexec/post-receive.d/02-build-snapshots8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/post-receive.d/02-build-snapshots b/libexec/post-receive.d/02-build-snapshots
index ed8ef77..b0952ff 100755
--- a/libexec/post-receive.d/02-build-snapshots
+++ b/libexec/post-receive.d/02-build-snapshots
@@ -24,12 +24,12 @@ if [ "$repository" = "$snapshot_repository" ]
24then 24then
25 while read old new ref 25 while read old new ref
26 do 26 do
27 ref=${ref#refs/heads/} 27 branch=${ref#refs/heads/}
28 28
29 for head in $snapshot_branches 29 for snapshot_branch in $snapshot_branches
30 do 30 do
31 test "$ref" = "$head" \ 31 test "$branch" = "$snapshot_branch" \
32 && exec "$prefix/bin/build-snapshot" "$ref" 32 && exec "$prefix/bin/build-snapshot" "$branch"
33 done 33 done
34 done 34 done
35fi 35fi