diff options
author | David RodrÃguez <[email protected]> | 2021-07-25 16:10:55 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-07-27 09:25:56 +0900 |
commit | 095b5bbcc168f324588d42d4ef233b446ed9f860 (patch) | |
tree | 280a399920e77ff3ac30ad3b352c916d60c8ccda /lib/bundler/source | |
parent | 350f4a0b66db6f056af5d75fb0b98d31628a841d (diff) |
[rubygems/rubygems] Lazily load shellwords
https://github.com/rubygems/rubygems/commit/ef6388656a
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index ae21770306..7555561edd 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require "shellwords" - module Bundler class Source class Git @@ -224,6 +222,7 @@ module Bundler end def check_allowed(command) + require "shellwords" command_with_no_credentials = URICredentialsFilter.credential_filtered_string("git #{command.shelljoin}", uri) raise GitNotAllowedError.new(command_with_no_credentials) unless allow? command_with_no_credentials |