aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorAndré Arko <mail@arko.net>2015-04-03 00:11:30 +0100
committerAndré Arko <mail@arko.net>2015-04-03 00:11:30 +0100
commit655f855c6a22e101fa7532041acb0b08bcaa4d44 (patch)
treeb42638b842303376bde50756e8e3dacd6652c58e /lib/bundler/source
parentb38531c06572acff3d7d0ee8f164fab4029eb37a (diff)
downloadbundler-655f855c6a22e101fa7532041acb0b08bcaa4d44.tar.gz
Revert "[GitProxy] Try and preserve the umask on git gems"
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git/git_proxy.rb2
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