@@ -18,7 +18,7 @@ function verify_staging_sync() {
18
18
local staging_dir=" staging/${remote} "
19
19
20
20
local outside_staging
21
- outside_staging=" $( git show --name-only " ${downstream_commit} " -- " :!${staging_dir} " ' :!vendor :!manifests' ) "
21
+ outside_staging=" $( git show --name-only " ${downstream_commit} " -- " :!${staging_dir} " ' :!vendor' ' :!manifests' ) "
22
22
if [[ -n " ${outside_staging} " ]]; then
23
23
err " downstream staging commit ${downstream_commit} changes files outside of ${staging_dir} , vendor, and manifests directories"
24
24
err " ${outside_staging} "
@@ -60,16 +60,15 @@ function upstream_ref() {
60
60
61
61
62
62
local invalid
63
+ invalid=false
63
64
if (( ${# upstream_repos[@]} != 1 )) ; then
64
- err " downstream staging commit ${downstream_commit} references an invalid number of repos:"
65
- err " ${upstream_repos[@]} "
65
+ err " downstream staging commit ${downstream_commit} references an invalid number of repos: ${# upstream_repos[@]} "
66
66
err " staging commits must reference a single upstream repo"
67
67
invalid=true
68
68
fi
69
69
70
70
if (( ${# upstream_commits[@]} != 1 )) ; then
71
- err " downstream staging commit ${downstream_commit} references an invalid number of upstream commits:"
72
- err " ${upstream_commits[@]} "
71
+ err " downstream staging commit ${downstream_commit} references an invalid number of upstream commits: ${# upstream_commits[@]} "
73
72
err " staging commits must reference a single upstream commit"
74
73
invalid=true
75
74
fi
@@ -121,7 +120,7 @@ function main() {
121
120
info " verifying ${short} ..."
122
121
info " $( git log -n 1 " ${commit} " ) "
123
122
124
- mapfile -t sr < < ( upstream_ref " ${commit} " || exit 1)
123
+ sr=( $ ( upstream_ref " ${commit} " ) ) || exit 1
125
124
if (( ${# sr[@]} < 2 )) ; then # the ref contains a tuple if the values were properly parsed from the commit message
126
125
# couldn't find upstream cherry-pick reference in the commit message
127
126
# assume it's downstream-only commit
0 commit comments