summaryrefslogtreecommitdiff
path: root/lib/chef/provider/git.rb
diff options
context:
space:
mode:
authormalcolm m <malcolm@hoprocker.net>2017-06-30 12:38:49 -0700
committerTim Smith <tsmith@chef.io>2018-03-20 11:09:16 -0700
commitee4312001080543739be686e9df887dee18f4868 (patch)
tree14a43d555cc87e6717c85144467778a2a18fb786 /lib/chef/provider/git.rb
parent747797aaac9dc3d900c3888a008e743d07dd8fe2 (diff)
downloadchef-ee4312001080543739be686e9df887dee18f4868.tar.gz
quote git remote_url
Signed-off-by: Malcolm McFarland <malcolm@hoprocker.net>
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r--lib/chef/provider/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb
index bdbeca5941..eb2b1679a1 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)