Skip to content

Commit 5a4dbcf

Browse files
authored
chore(scripts): fix cherry-pick check in check_commit_metadata.sh (#13980)
1 parent a8e6e89 commit 5a4dbcf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/release/check_commit_metadata.sh

+6
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ main() {
126126
log "Found renamed cherry-pick commit ${commit1} -> ${renamed}"
127127
renamed_cherry_pick_commits[${commit1}]=${renamed}
128128
renamed_cherry_pick_commits[${renamed}]=${commit1}
129+
i=$((i - 1))
129130
continue
130131
fi
131132

@@ -147,6 +148,11 @@ main() {
147148
log "Found matching cherry-pick commit ${commit} -> ${renamed_cherry_pick_commits[${commit}]}"
148149
done
149150

151+
# Merge the two maps.
152+
for commit in "${!renamed_cherry_pick_commits[@]}"; do
153+
cherry_pick_commits[${commit}]=${renamed_cherry_pick_commits[${commit}]}
154+
done
155+
150156
# Get abbreviated and full commit hashes and titles for each commit.
151157
git_log_out="$(git log --no-merges --left-right --pretty=format:"%m %h %H %s" "${range}")"
152158
if [[ -z ${git_log_out} ]]; then

0 commit comments

Comments
 (0)