aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2016-03-29 21:08:56 +0800
committerXu Cheng2016-03-31 14:49:01 +0800
commit63c0a9fa92c100e505cc2a53e752b5a448c61473 (patch)
treeba4c051a4e3ebc454182131955f5c4f51822fc8a /Library
parent3d3e874c680718c2f39fe407b3c6392fd3964dac (diff)
downloadbrew-63c0a9fa92c100e505cc2a53e752b5a448c61473.tar.bz2
Tap#install: set autocrlf to false
Ensure we don't munge line endings on checkout regardless with user's global git config. Closes Homebrew/homebrew#50514. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 17e84d1b0..e3d5b1cce 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -182,7 +182,7 @@ class Tap
Utils.ensure_git_installed!
ohai "Tapping #{name}" unless quiet
remote = options[:clone_target] || "https://github.com/#{user}/homebrew-#{repo}"
- args = %W[clone #{remote} #{path}]
+ args = %W[clone #{remote} #{path} --config core.autocrlf=false]
args << "--depth=1" unless options.fetch(:full_clone, false)
args << "-q" if quiet