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