Commit e7b0fe36 authored by Lin Jen-Shin's avatar Lin Jen-Shin

It should escape spaces to %20 rather than +

`CGI.escape` would escape spaces to +, which is fine in
some cases, but doesn't work for git clone.
parent 5b880f0d
...@@ -23,7 +23,7 @@ module QA ...@@ -23,7 +23,7 @@ module QA
def password=(pass) def password=(pass)
@password = pass @password = pass
@uri.password = CGI.escape(pass) @uri.password = CGI.escape(pass).gsub('+', '%20')
end end
def use_default_credentials def use_default_credentials
......
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