Skip to content

Commit 6a8d5e4

Browse files
committed
check: fix Fixes trailer regex
Fix the code that checks the 'Fixes' of the commit log. Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
1 parent d3a2f35 commit 6a8d5e4

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)