From 5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 19 Jan 2013 11:11:25 +0200 Subject: Fixed developer push to protected branch. Closes #2647 --- lib/gitlab/backend/grack_auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1