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/rubygems_ext.rb | |
parent | a350159498ee55a146b4200f7da0373cecf8bc52 (diff) | |
download | bundler-4be789d60f71adc684fe763c414a220751af9c9f.tar.gz |
Prohibit Dir.pwd while another thread is doing Dir.chdir
Diffstat (limited to 'lib/bundler/rubygems_ext.rb')
-rw-r--r-- | lib/bundler/rubygems_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_ext.rb b/lib/bundler/rubygems_ext.rb index eeeed1ef..7b808a69 100644 --- a/lib/bundler/rubygems_ext.rb +++ b/lib/bundler/rubygems_ext.rb @@ -52,7 +52,7 @@ module Gem def git_version if @loaded_from && File.exist?(File.join(full_gem_path, ".git")) - sha = Dir.chdir(full_gem_path){ `git rev-parse HEAD`.strip } + sha = Bundler::SharedHelpers.chdir(full_gem_path){ `git rev-parse HEAD`.strip } " #{sha[0..6]}" end end |