diff --git a/git/hooks/commit-msg b/git/hooks/commit-msg deleted file mode 120000 index dee7d3fc93..0000000000 --- a/git/hooks/commit-msg +++ /dev/null @@ -1 +0,0 @@ -../../git/hooks/forward-merge \ No newline at end of file diff --git a/git/hooks/forward-merge b/git/hooks/forward-merge index 2d0a3b199b..64cc108e56 100755 --- a/git/hooks/forward-merge +++ b/git/hooks/forward-merge @@ -18,7 +18,7 @@ def find_forward_merge(message_file) return nil unless rev message = File.read(message_file) message.each_line do |line| - match = /^(?:Fixes|Closes) gh-(\d+) in ([\d\.]+(?:(?:M|RC)\d)?)$/.match(line) + match = /^(?:Fixes|Closes) gh-(\d+) in (\d\.\d\.\d(?:(?:\.|-)(?:M|RC)\d)?)$/.match(line) if match then issue = match[1] milestone = match[2]