From 63c0a9fa92c100e505cc2a53e752b5a448c61473 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 29 Mar 2016 21:08:56 +0800 Subject: 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 --- Library/Homebrew/tap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3