From e49e8a8ef058b9a9286eb8dc2407cdc10dedc243 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 30 May 2025 01:31:40 +0200 Subject: [PATCH] hooks:pre-push: Put -E flag closer to --grep Since they belong together. --- meta/git/hooks/pre-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/git/hooks/pre-push b/meta/git/hooks/pre-push index 3b4d74b..30c470a 100755 --- a/meta/git/hooks/pre-push +++ b/meta/git/hooks/pre-push @@ -46,7 +46,7 @@ while read local_ref local_oid remote_ref remote_oid; do # Check for WIP or auto{squash,fixup} commit pattern='^(WIP|(fixup|squash)!)' - commits="$(git rev-list -E --oneline --grep "$pattern" "$range")" + commits="$(git rev-list --oneline -E --grep "$pattern" "$range")" if [ -n "$commits" ] && [ "$is_wip_branch" -eq 0 ]; then printf >&2 "%s: Commits in progress:\n" "$local_ref" printf >&2 "%s\n" "$commits"