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:
parent
3d3e874c68
commit
63c0a9fa92
@ -182,7 +182,7 @@ class Tap
|
|||||||
Utils.ensure_git_installed!
|
Utils.ensure_git_installed!
|
||||||
ohai "Tapping #{name}" unless quiet
|
ohai "Tapping #{name}" unless quiet
|
||||||
remote = options[:clone_target] || "https://github.com/#{user}/homebrew-#{repo}"
|
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 << "--depth=1" unless options.fetch(:full_clone, false)
|
||||||
args << "-q" if quiet
|
args << "-q" if quiet
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user