From 891362dfb2dd525e1cc824e0c4c7ac19efbdf3de Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 13 Jul 2024 15:01:19 +0200 Subject: [PATCH] Use extended regex rather than perl regex in the git call My local git is not compiled with PCRE support, so using -E makes it easier for me to test the script locally. And -E is good enough for the simple matching we want to do here. --- scripts/check_for_fixups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check_for_fixups.sh b/scripts/check_for_fixups.sh index c2c2e1a21..12a07e3fd 100755 --- a/scripts/check_for_fixups.sh +++ b/scripts/check_for_fixups.sh @@ -13,7 +13,7 @@ fi echo "Base commit: $base_commit" # Get commits with "fixup!" in the message from base_commit to HEAD -commits=$(git log -i -P --grep "fixup\!" --format="%h %s" "$base_commit..HEAD") +commits=$(git log -i -E --grep "fixup\!" --format="%h %s" "$base_commit..HEAD") if [ -z "$commits" ]; then echo "No fixup commits found."