diff options
author | Doug Barth <dougbarth@gmail.com> | 2010-04-16 08:57:06 -0500 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-04-23 09:55:06 -0700 |
commit | ed2518a90e759ac460f443e35168a189cd060188 (patch) | |
tree | e8d899e490a76e428c9434e426b211c8cda7e985 /lib | |
parent | 2a1277cbce91e6fbfc7ecebdb7440ca91dbe9fbe (diff) | |
download | bundler-ed2518a90e759ac460f443e35168a189cd060188.tar.gz |
Creates checkout parent directory before cloning.
This commit runs FileUtils.mkdir_p to create the ancestor directories
of the git clone before running the git clone command. This extra step
is needed because older versions of git did not do this step.
Most users might not experience this issue because they are running the
latest version of git. The version of git that comes with RedHat
Enterprise Linux 5 does not include this behavior.
Closes #285
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/source.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 4eac117c..960a154d 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -409,6 +409,7 @@ module Bundler def checkout unless File.exist?(path.join(".git")) + FileUtils.mkdir_p(path.dirname) git %|clone --no-checkout "#{cache_path}" "#{path}"| end Dir.chdir(path) do |