summaryrefslogtreecommitdiff
path: root/lib/chef/provider/git.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-06-04 10:59:31 -0700
committerBryan McLellan <btm@loftninjas.org>2013-06-05 11:48:42 -0400
commit3d87fac901fad2d770dab7515cc360b80e092fda (patch)
treef70411c09273d15f31a09243451a4f82f9d90e90 /lib/chef/provider/git.rb
parentc245c6328d5d2ca1dedbdc7805354433c7e6c580 (diff)
downloadchef-3d87fac901fad2d770dab7515cc360b80e092fda.tar.gz
Apparently git.exe on windows only works with double quotes.
Conflicts: lib/chef/provider/git.rb spec/unit/provider/git_spec.rb
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 5708fed1f5..a36a668759 100644
--- a/lib/chef/provider/git.rb
+++ b/lib/chef/provider/git.rb
@@ -147,7 +147,7 @@ class Chef
Chef::Log.info "#{@new_resource} cloning repo #{@new_resource.repository} to #{@new_resource.destination}"
- clone_cmd = "git clone #{args.join(' ')} '#{@new_resource.repository}' '#{@new_resource.destination}'"
+ clone_cmd = "git clone #{args.join(' ')} \"#{@new_resource.repository}\" \"#{@new_resource.destination}\""
shell_out!(clone_cmd, run_options(:log_level => :info))
end
end