summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-15 15:41:21 -0700
committerAndre Arko <andre@arko.net>2015-07-15 15:41:21 -0700
commit917ce622c1b643df2e77af82917776eae0dfb062 (patch)
tree3ace8c2ae7c7b4ee5a2fd16781349b431ae1de37
parent54ead324ce37f7ae5be7695ee4253d96e3542bb4 (diff)
downloadbundler-917ce622c1b643df2e77af82917776eae0dfb062.tar.gz
Apply the suggested fix from #3438
-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 89c784e0fa..5f388e76e5 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((0777 & ~File.umask), destination)
+ File.chmod(((File.stat(destination).mode | 0777) & ~File.umask), destination)
end
SharedHelpers.chdir(destination) do