Skip to content

Commit 2bae253

Browse files
Fix missing Change-Id
The pull request 43a311d mistakenly set the trailers_by variable to DEFAULT_TRAILERS_BY, causing the change ID to disappear. Change the variable to KNOWN_TRAILERS_BY to ensure the change ID appears correctly. Co-authored-by: Cheng-Yang Chou <[email protected]> Change-Id: I4e3b4bfa06aba31bed2c26925ecfa5593a3d327b
1 parent e83f2fb commit 2bae253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/commit-msg.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ build_commit_trailer_regex() {
186186
done < <(git config --get-regexp 'trailer.*.key')
187187

188188
if [[ ${#trailers_by[@]} -eq 0 ]]; then
189-
trailers_by=("${DEFAULT_TRAILERS_BY[@]}")
189+
trailers_by=("${KNOWN_TRAILERS_BY[@]}")
190190
fi
191191

192192
# Possible trailers :

0 commit comments

Comments
 (0)