diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-26 12:57:30 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-26 12:57:30 +0300 |
commit | 0bd0f069943cec360b226153f5b0eadd2fe9bdea (patch) | |
tree | c90b4a8e95c2bd1d8e5da1576f900d42a23d0933 /lib/gitlab_update.rb | |
parent | d3c3fbc6163ca13b16351214349bd5a7f5b729a3 (diff) | |
download | gitlab-shell-0bd0f069943cec360b226153f5b0eadd2fe9bdea.tar.gz |
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
Diffstat (limited to 'lib/gitlab_update.rb')
-rw-r--r-- | lib/gitlab_update.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_update.rb b/lib/gitlab_update.rb index df58e8f..c61d571 100644 --- a/lib/gitlab_update.rb +++ b/lib/gitlab_update.rb @@ -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] |