From e930ddcaab24375042c161281f1aa592b8833cbf Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 5 Oct 2013 00:01:26 +0200 Subject: 02-build-snapshots: Cosmetic changes Use better variables names. 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" ] then while read old new ref do - ref=${ref#refs/heads/} + branch=${ref#refs/heads/} - for head in $snapshot_branches + for snapshot_branch in $snapshot_branches do - test "$ref" = "$head" \ - && exec "$prefix/bin/build-snapshot" "$ref" + test "$branch" = "$snapshot_branch" \ + && exec "$prefix/bin/build-snapshot" "$branch" done done fi -- cgit v0.10-9-g596f