diff options
author | Sadayuki Furuhashi <frsyuki@gmail.com> | 2015-07-30 14:13:24 -0700 |
---|---|---|
committer | Sadayuki Furuhashi <frsyuki@gmail.com> | 2015-07-30 14:13:24 -0700 |
commit | 2be8d87976c01221a92ac96e852b11b9518f6c01 (patch) | |
tree | d73fe67e392977de095040743e07b7785fe03733 | |
parent | 1ab54c17e80fd4569bee2e4f14484642a0fa3bb1 (diff) | |
download | bundler-2be8d87976c01221a92ac96e852b11b9518f6c01.tar.gz |
reverted unnecessary revert of refactoring at GitProxy#uri_escaped
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index e01847d030..b3f8816c3e 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -141,11 +141,11 @@ module Bundler if Bundler::WINDOWS # Windows quoting requires double quotes only, with double quotes # inside the string escaped by being doubled. - '"' + remote.gsub('"') {|s| '""'} + '"' + '"' + remote.gsub('"') { '""' } + '"' else # Bash requires single quoted strings, with the single quotes escaped # by ending the string, escaping the quote, and restarting the string. - "'" + remote.gsub("'") {|s| "'\\''"} + "'" + "'" + remote.gsub("'") { "'\\''" } + "'" end end |