From 23e8bcb1d6d4195d2a636678a3bb0e30a1442d21 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Sat, 20 Mar 2010 17:14:27 -0700 Subject: [PATCH] Quote paths with double quotes for Windows Hopefully finally fixes #196 --- lib/bundler/source.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 41651e223b7..e83954f4103 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -315,17 +315,17 @@ def cache_path def cache if cache_path.exist? Bundler.ui.info "Updating #{uri}" - in_cache { git "fetch --quiet '#{uri}' master:master" } + in_cache { git %|fetch --quiet "#{uri}" master:master| } else Bundler.ui.info "Fetching #{uri}" FileUtils.mkdir_p(cache_path.dirname) - git "clone '#{uri}' '#{cache_path}' --bare --no-hardlinks" + git %|clone "#{uri}" "#{cache_path}" --bare --no-hardlinks| end end def checkout unless File.exist?(path.join(".git")) - git "clone --no-checkout '#{cache_path}' '#{path}'" + git %|clone --no-checkout "#{cache_path}" "#{path}"| end Dir.chdir(path) do git "fetch --quiet"