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>
This commit is contained in:
Xu Cheng 2016-03-29 21:08:56 +08:00
parent 3d3e874c68
commit 63c0a9fa92

View File

@ -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