lib/bundler/source.rb
# Escape the URI for git commands
Escape the URI for git commands
Escape the URI for git commands
def uri_escaped
        if Bundler::WINDOWS
          '"' + uri.gsub('"') {|s| '""'} + '"'
        else
          "'" + uri.gsub("'") {|s| "'\\''"} + "'"
        end
      end
def uri_escaped if Bundler :: WINDOWS '"' + uri . gsub ( '"' ) { | s | '""' } + '"' else "'" + uri . gsub ( "'" ) { | s | "'\\''" } + "'" end end
Escape the URI for git commands
Escape the URI for git commands
# Windows quoting requires double quotes only, with double quotes # inside the string escaped by being doubled. # Bash requires single quoted strings, with the single quotes escaped # by ending the string, escaping the quote, and restarting the string.