diff options
author | malcolm m <malcolm@hoprocker.net> | 2017-06-30 12:38:49 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-06-04 10:48:34 -0700 |
commit | 11b05207eb12f2efe00d268f0b7cac658fa462fd (patch) | |
tree | ae6980f10c6864819a90e29b7618654838c5070f | |
parent | 689c581bb4a12ee9ee216c354aec5efc82455613 (diff) | |
download | chef-11b05207eb12f2efe00d268f0b7cac658fa462fd.tar.gz |
quote git remote_url
Signed-off-by: Malcolm McFarland <malcolm@hoprocker.net>
-rw-r--r-- | lib/chef/provider/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb index 239dfa09e6..fca6100dc2 100644 --- a/lib/chef/provider/git.rb +++ b/lib/chef/provider/git.rb @@ -213,7 +213,7 @@ class Chef # which we can fix by replacing them all with our target url (hence the --replace-all option) if multiple_remotes?(remote_status) || !remote_matches?(remote_url, remote_status) - git("config", "--replace-all", "remote.#{remote_name}.url", remote_url, cwd: cwd) + git("config", "--replace-all", "remote.#{remote_name}.url", %("#{remote_url}"), cwd: cwd) end when 1 git("remote", "add", remote_name, remote_url, cwd: cwd) |