From 125f50d6e82eeae30b2f885c90b2f1423968402d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 12 Feb 2020 15:04:14 -0700 Subject: case-insensitively look for "^WIP" Might end up needing to revise (by making the regex more sophisticated) and/or undo this, but seems useful. --- hooks/git/pre-push_signed-off-by | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hooks') diff --git a/hooks/git/pre-push_signed-off-by b/hooks/git/pre-push_signed-off-by index 47321be6..f429ad7e 100755 --- a/hooks/git/pre-push_signed-off-by +++ b/hooks/git/pre-push_signed-off-by @@ -32,7 +32,7 @@ while read local_ref local_sha remote_ref remote_sha; do fi # Check for WIP commit - commit=$(git rev-list -n 1 --grep '^WIP' "$range") + commit=$(git rev-list -n 1 -i --grep '^WIP' "$range") if [ -n "$commit" ] then echo >&2 "Found WIP commit in $local_ref, not pushing" -- cgit v1.2.3