diff options
author | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-14 14:58:40 +0900 |
---|---|---|
committer | Kohei Suzuki <kohei-suzuki@cookpad.com> | 2013-05-23 13:32:40 +0900 |
commit | 4be789d60f71adc684fe763c414a220751af9c9f (patch) | |
tree | 326b65de47cd97bb6fcc3482011d8ac0d455303e /lib/bundler/source/git | |
parent | a350159498ee55a146b4200f7da0373cecf8bc52 (diff) | |
download | bundler-4be789d60f71adc684fe763c414a220751af9c9f.tar.gz |
Prohibit Dir.pwd while another thread is doing Dir.chdir
Diffstat (limited to 'lib/bundler/source/git')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index e480f15a..320ecb43 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -58,7 +58,7 @@ module Bundler File.chmod((0777 & ~File.umask), destination) end - Dir.chdir(destination) do + SharedHelpers.chdir(destination) do git %|fetch --force --quiet --tags "#{path}"| git "reset --hard #{@revision}" @@ -127,7 +127,7 @@ module Bundler def in_path(&blk) checkout unless path.exist? - Dir.chdir(path, &blk) + SharedHelpers.chdir(path, &blk) end def allowed_in_path |