From dcc1ae393cf8814ddef768a567df17d19b6a0863 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 13 Nov 2017 15:48:52 +0100 Subject: [PATCH] dist/tools/pr_check: fix regex pattern to recognize any SHA --- dist/tools/pr_check/pr_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/tools/pr_check/pr_check.sh b/dist/tools/pr_check/pr_check.sh index 2603a40aa9..e8dbd7ce3e 100755 --- a/dist/tools/pr_check/pr_check.sh +++ b/dist/tools/pr_check/pr_check.sh @@ -25,7 +25,7 @@ else fi SQUASH_COMMITS="$(git log $(git merge-base HEAD "${RIOT_MASTER}")...HEAD --pretty=format:" %h %s" | \ - grep -i -e "^ [0-9a-f]\{7\} .\{0,2\}SQUASH" -e "^ [0-9a-f]\{7\} .\{0,2\}FIX")" + grep -i -e "^ [0-9a-f]\+ .\{0,2\}SQUASH" -e "^ [0-9a-f]\+ .\{0,2\}FIX")" if [ -n "${SQUASH_COMMITS}" ]; then echo -e "${CERROR}Pull request needs squashing:${CRESET}" 1>&2