diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:57:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:57:37 +1200 |
commit | 541bb046230d49080c813b0a7cc21aefcc747832 (patch) | |
tree | b84194399ddb434c886e2bfd769e0a0e39e10feb /git | |
parent | Don't try to read hook arguments beyond the first (diff) | |
download | dotfiles-541bb046230d49080c813b0a7cc21aefcc747832.tar.gz dotfiles-541bb046230d49080c813b0a7cc21aefcc747832.zip |
Remove unneeded regex escape
Diffstat (limited to 'git')
-rwxr-xr-x | git/template/hooks/prepare-commit-msg.awk | 2 |
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 |