Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Quote paths with double quotes for Windows
Browse files Browse the repository at this point in the history
Hopefully finally fixes #196
  • Loading branch information
indirect committed Mar 23, 2010
1 parent 2bdbc61 commit e361045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bundler/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e361045

Please sign in to comment.