summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-19 11:11:25 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-19 11:11:25 +0200
commit5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad (patch)
tree0356ab6cee7341e0c77373af4c145bc725b42265
parentaf7dcda1cb33fc8c828d41f4c2ac89f7d2ce8315 (diff)
downloadgitlab-ce-5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad.tar.gz
Fixed developer push to protected branch. Closes #2647
-rw-r--r--lib/gitlab/backend/grack_auth.rb2
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