Skip to content
Snippets Groups Projects
Unverified Commit 06feb3c4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Cleanup parsed refs for git over HTTP

parent 7f685986
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -125,7 +125,15 @@ module Grack
 
# Need to reset seek point
@request.body.rewind
input.force_encoding('ascii-8bit').scan(/refs\/heads\/([\/\w\.-]+)/n).flatten.compact
# Parse refs
refs = input.force_encoding('ascii-8bit').scan(/refs\/heads\/([\/\w\.-]+)/n).flatten.compact
# Cleanup grabare from refs
# if push to multiple branches
refs.map do |ref|
ref.gsub(/0000PACK.*/, "")
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment