From 0dc0c93a4be575205b28f38701a90ad6b34033e8 Mon Sep 17 00:00:00 2001 From: "Auke L. Klazema" <klazema@astron.nl> Date: Tue, 9 Jul 2019 11:57:14 +0200 Subject: [PATCH] SW-773: Fix commit-msg hook for real --- support/hooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/hooks/commit-msg b/support/hooks/commit-msg index 9e2e4a454b5..5d3773a4467 100644 --- a/support/hooks/commit-msg +++ b/support/hooks/commit-msg @@ -4,7 +4,7 @@ message_file = ARGV[0] message = File.read(message_file) $regex = /^((fixes|task|story|issue)\s)?(#(\d+)|[a-zA-Z]+-(\d)+):/i if !$regex.match(message) - STDERR.puts("[commit-msg hook] Your commit #{ rev } was rejected!\n"\ + STDERR.puts("[commit-msg hook] Your commit was rejected!\n"\ "[commit-msg hook] A commit message must start with a JIRA task ID,\n"\ " or \"task\", \"story\", \"issue\" or \"fixes\", followed by an issue ID.\n"\ "[commit-msg hook] For example: \"Task #42: Fixed bug\" or \"SW-22334: Fixed bug\"\n"\ -- GitLab