aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 18:57:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 18:57:37 +1200
commit541bb046230d49080c813b0a7cc21aefcc747832 (patch)
treeb84194399ddb434c886e2bfd769e0a0e39e10feb
parentDon't try to read hook arguments beyond the first (diff)
downloaddotfiles-541bb046230d49080c813b0a7cc21aefcc747832.tar.gz
dotfiles-541bb046230d49080c813b0a7cc21aefcc747832.zip
Remove unneeded regex escape
-rwxr-xr-xgit/template/hooks/prepare-commit-msg.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/template/hooks/prepare-commit-msg.awk b/git/template/hooks/prepare-commit-msg.awk
index 96d7c6cb..44913406 100755
--- a/git/template/hooks/prepare-commit-msg.awk
+++ b/git/template/hooks/prepare-commit-msg.awk
@@ -17,7 +17,7 @@ BEGIN {
}
# This line is blank, or a comment; reset the branch
-!NF || $1 ~ /^\#/ { branch = 0 }
+!NF || $1 ~ /^#/ { branch = 0 }
# Commit message subject patterns to skip go here; be as precise as you can
$0 == " Bump VERSION" { next } # Skip version number bumps