diff options
author | André Arko <mail@arko.net> | 2015-04-03 00:11:30 +0100 |
---|---|---|
committer | André Arko <mail@arko.net> | 2015-04-03 00:11:30 +0100 |
commit | 655f855c6a22e101fa7532041acb0b08bcaa4d44 (patch) | |
tree | b42638b842303376bde50756e8e3dacd6652c58e /lib/bundler | |
parent | b38531c06572acff3d7d0ee8f164fab4029eb37a (diff) | |
download | bundler-655f855c6a22e101fa7532041acb0b08bcaa4d44.tar.gz |
Revert "[GitProxy] Try and preserve the umask on git gems"
Diffstat (limited to 'lib/bundler')
-rw-r--r-- | lib/bundler/source/git/git_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git/git_proxy.rb b/lib/bundler/source/git/git_proxy.rb index 5f388e76..89c784e0 100644 --- a/lib/bundler/source/git/git_proxy.rb +++ b/lib/bundler/source/git/git_proxy.rb @@ -83,7 +83,7 @@ module Bundler FileUtils.mkdir_p(destination.dirname) FileUtils.rm_rf(destination) git_retry %|clone --no-checkout --quiet "#{path}" "#{destination}"| - File.chmod(((File.stat(destination).mode | 0777) & ~File.umask), destination) + File.chmod((0777 & ~File.umask), destination) end SharedHelpers.chdir(destination) do |