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 81 end
82 82 # Need to reset seek point
83 83 @request.body.rewind
84   - /refs\/heads\/([\w\.-]+)/.match(input).to_a.first
  84 + /refs\/heads\/([\w\.-]+)/.match(input).to_a.last
85 85 end
86 86  
87 87 def project
... ...