diff --git a/support/hooks/commit-msg b/support/hooks/commit-msg index 9e2e4a454b57835b075ff31d41421a3f09acec95..5d3773a4467806c588828a9e4e66fb627dbfbdbc 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"\