diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:57:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-29 18:57:00 +1200 |
commit | e3c8269453d78ddf38711502f61f08c39957c362 (patch) | |
tree | 719e39911da146fa40c2e3793519c7f51dc38b58 /git | |
parent | Handle blank lines and comments in merge commits (diff) | |
download | dotfiles-e3c8269453d78ddf38711502f61f08c39957c362.tar.gz dotfiles-e3c8269453d78ddf38711502f61f08c39957c362.zip |
Don't try to read hook arguments beyond the first
Diffstat (limited to 'git')
-rwxr-xr-x | git/template/hooks/prepare-commit-msg.awk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/template/hooks/prepare-commit-msg.awk b/git/template/hooks/prepare-commit-msg.awk index 2ee8d3a9..96d7c6cb 100755 --- a/git/template/hooks/prepare-commit-msg.awk +++ b/git/template/hooks/prepare-commit-msg.awk @@ -6,6 +6,7 @@ BEGIN { if (ARGV[2] != "merge") exit(0) message = ARGV[1] + ARGC = 2 } # This line starts with an asterisk, so we're starting the commit listings for |