aboutsummaryrefslogtreecommitdiff
path: root/git/template
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 18:57:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 18:57:00 +1200
commite3c8269453d78ddf38711502f61f08c39957c362 (patch)
tree719e39911da146fa40c2e3793519c7f51dc38b58 /git/template
parentHandle blank lines and comments in merge commits (diff)
downloaddotfiles-e3c8269453d78ddf38711502f61f08c39957c362.tar.gz
dotfiles-e3c8269453d78ddf38711502f61f08c39957c362.zip
Don't try to read hook arguments beyond the first
Diffstat (limited to 'git/template')
-rwxr-xr-xgit/template/hooks/prepare-commit-msg.awk1
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