diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-19 11:11:25 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-19 11:11:25 +0200 |
commit | 5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad (patch) | |
tree | 0356ab6cee7341e0c77373af4c145bc725b42265 | |
parent | af7dcda1cb33fc8c828d41f4c2ac89f7d2ce8315 (diff) | |
download | gitlab-ce-5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad.tar.gz |
Fixed developer push to protected branch. Closes #2647
-rw-r--r-- | lib/gitlab/backend/grack_auth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/backend/grack_auth.rb b/lib/gitlab/backend/grack_auth.rb index c921ec0d50b..a2d15d57034 100644 --- a/lib/gitlab/backend/grack_auth.rb +++ b/lib/gitlab/backend/grack_auth.rb @@ -81,7 +81,7 @@ module Grack end # Need to reset seek point @request.body.rewind - /refs\/heads\/([\w\.-]+)/.match(input).to_a.first + /refs\/heads\/([\w\.-]+)/.match(input).to_a.last end def project |