Commit 5c3fdfaa authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed developer push to protected branch. Closes #2647

parent af7dcda1
...@@ -81,7 +81,7 @@ module Grack ...@@ -81,7 +81,7 @@ module Grack
end end
# Need to reset seek point # Need to reset seek point
@request.body.rewind @request.body.rewind
/refs\/heads\/([\w\.-]+)/.match(input).to_a.first /refs\/heads\/([\w\.-]+)/.match(input).to_a.last
end end
def project def project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment