Skip to content

Commit 48c4859

Browse files
stirbymafredri
andauthored
chore(scripts): fix cherry-pick check in check_commit_metadata.sh (#13980) (#13994)
(cherry picked from commit 5a4dbcf) Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
1 parent 5b12020 commit 48c4859

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/release/check_commit_metadata.sh

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy