From bd1d668e2e1bef03f5d324b157c5bfbfc8854c37 Mon Sep 17 00:00:00 2001 From: Harry Marr Date: Mon, 13 Mar 2023 09:22:09 -0500 Subject: [PATCH] Create .git/info dir if it doesn't exist --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index ce63bd7460..0c0836cbb1 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -1059,6 +1059,7 @@ class GitDownloadStrategy < VCSDownloadStrategy args: ["config", "core.sparseCheckout", "true"], chdir: cached_location + (git_dir/"info").mkpath (git_dir/"info"/"sparse-checkout").atomic_write("#{@only_path}\n") end end