Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3438 from segiddins/seg-git-umask

[GitProxy] Try and preserve the umask on git gems
  • Loading branch information...
commit b38531c06572acff3d7d0ee8f164fab4029eb37a 2 parents 2e43ab6 + 4022355
@indirect indirect authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bundler/source/git/git_proxy.rb
View
2  lib/bundler/source/git/git_proxy.rb
@@ -83,7 +83,7 @@ def copy_to(destination, submodules=false)
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
Please sign in to comment.
Something went wrong with that request. Please try again.