From 65735cee71c0f2a23a8cec254d95e1d2f276a08a Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sun, 23 Apr 2023 12:08:32 -0700 Subject: [PATCH] ; Fix last change --- build-aux/git-hooks/pre-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/git-hooks/pre-push b/build-aux/git-hooks/pre-push index 03fbede4865..8e8277cba4f 100755 --- a/build-aux/git-hooks/pre-push +++ b/build-aux/git-hooks/pre-push @@ -49,7 +49,7 @@ $awk -v origin_name="$1" ' # Check any lines with a valid local SHA and whose remote ref is # master or an emacs-NN release branch. (We want to avoid checking # feature or scratch branches here.) - $2 ~ /^[a-z0-9]{40}$/ && $3 ~ /^refs/heads/(master|emacs-[0-9]+)$/ { + $2 ~ /^[a-z0-9]{40}$/ && $3 ~ /^refs\/heads\/(master|emacs-[0-9]+)$/ { newref = $2 # If the remote SHA is all zeroes, this is a new object to be # pushed (likely a branch)... -- 2.39.2