method
warn_on_git_protocol
ruby latest stable - Class:
Bundler::SourceList
warn_on_git_protocol(source)private
No documentation available.
# File lib/bundler/source_list.rb, line 147
def warn_on_git_protocol(source)
return if Bundler.settings["git.allow_insecure"]
if source.uri =~ /^git\:/
Bundler.ui.warn "The git source `#{source.uri}` uses the `git` protocol, " "which transmits data without encryption. Disable this warning with " "`bundle config git.allow_insecure true`, or switch to the `https` " "protocol to keep your data secure."
end
end