diff options
Diffstat (limited to 'libexec/post-receive.d/02-build-snapshots')
| -rwxr-xr-x | libexec/post-receive.d/02-build-snapshots | 8 |
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" ] | |||
| 24 | then | 24 | then |
| 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 |
| 35 | fi | 35 | fi |
