summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2023-04-23 12:08:32 -0700
committerJim Porter <jporterbugs@gmail.com>2023-04-23 12:08:32 -0700
commit65735cee71c0f2a23a8cec254d95e1d2f276a08a (patch)
treeda3a4adbc30c570d67e666a42c4b10379521b8e8 /build-aux
parent3ce462c8fda02c29e79ec80fb389fc44d550142a (diff)
downloademacs-65735cee71c0f2a23a8cec254d95e1d2f276a08a.tar.gz
; Fix last change
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/git-hooks/pre-push2
1 files changed, 1 insertions, 1 deletions
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)...