diff options
Diffstat (limited to 'round-robin.sh')
-rw-r--r-- | round-robin.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/round-robin.sh b/round-robin.sh index 4c4b7883..b6196176 100644 --- a/round-robin.sh +++ b/round-robin.sh @@ -95,8 +95,9 @@ clone_repo () # ${rr[current_branch]} specifies branch for ${rr[current_project]}, # and everything else uses baseline branch. if [ x"$project" = x"${rr[current_project]}" ]; then + # Use the tip of the branch tracked in the current configuration. if [ x"${rr[current_branch]}" = x"default" ]; then - branch=${rr[${current_project}_branch]} + branch=${rr[${rr[current_project]}_branch]} elif [ x"${rr[current_branch]}" = x"baseline" ]; then branch="refs/remotes/baseline/${rr[baseline_branch]}" else |