From e3c8269453d78ddf38711502f61f08c39957c362 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 18:57:00 +1200 Subject: Don't try to read hook arguments beyond the first --- git/template/hooks/prepare-commit-msg.awk | 1 + 1 file changed, 1 insertion(+) (limited to 'git/template') 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 -- cgit v1.2.3