Commit 5c3fdfaacba50edbd6d6d7db65d2aa2e69bb5cad

Authored by Dmitriy Zaporozhets
1 parent af7dcda1

Fixed developer push to protected branch. Closes #2647

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gitlab/backend/grack_auth.rb
@@ -81,7 +81,7 @@ module Grack @@ -81,7 +81,7 @@ module Grack
81 end 81 end
82 # Need to reset seek point 82 # Need to reset seek point
83 @request.body.rewind 83 @request.body.rewind
84 - /refs\/heads\/([\w\.-]+)/.match(input).to_a.first 84 + /refs\/heads\/([\w\.-]+)/.match(input).to_a.last
85 end 85 end
86 86
87 def project 87 def project