Skip to content
Snippets Groups Projects
Commit dcc1ae39 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

dist/tools/pr_check: fix regex pattern to recognize any SHA

parent 6eaffbb2
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ else ...@@ -25,7 +25,7 @@ else
fi fi
SQUASH_COMMITS="$(git log $(git merge-base HEAD "${RIOT_MASTER}")...HEAD --pretty=format:" %h %s" | \ 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 if [ -n "${SQUASH_COMMITS}" ]; then
echo -e "${CERROR}Pull request needs squashing:${CRESET}" 1>&2 echo -e "${CERROR}Pull request needs squashing:${CRESET}" 1>&2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment