Skip to content

Commit e175b5e

Browse files
jeremie6windsamuel-gauthier
authored andcommitted
check: fix Fixes trailer regex
The sed command with the regex fails to keep the sha1 and remove the commit title from the 'Fixes' trailer. Then the git command fails to find the commit. A commit with 'Fixes' can not be validated by the script. Fix the regex to extract the sha1. Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
1 parent d3a2f35 commit e175b5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check-commits.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ for rev in $revisions; do
104104
if [ -z "$value" ]; then
105105
continue
106106
fi
107-
fixes_rev=$(echo "$value" | sed -En 's/([A-Fa-f0-9]{7,}[[:space:]]\(".*"\))/\1/p')
107+
fixes_rev=$(echo "$value" | sed -En 's/([A-Fa-f0-9]{7,})[[:space:]]\(".*"\)/\1/p')
108108
if ! git cat-file commit "$fixes_rev" >/dev/null; then
109109
err "trailer '$value' does not refer to a known commit"
110110
fi

0 commit comments

Comments
 (0)