Commit 0bd0f069 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix issue when developers are able to push to protected branch

When that branch contain a '/' in the branch name.
Fix for git over ssh
parent d3c3fbc6
......@@ -15,7 +15,7 @@ class GitlabUpdate
@key_id = key_id
@refname = refname
@branch_name = /refs\/heads\/([\w\.-]+)/.match(refname).to_a.last
@branch_name = /refs\/heads\/([\/\w\.-]+)/.match(refname).to_a.last
@oldrev = ARGV[1]
@newrev = ARGV[2]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment