Skip to content

Commit

Permalink
Merge pull request #14957 from hmarr/create-git-info-dir
Browse files Browse the repository at this point in the history
Create .git/info dir if it doesn't exist
  • Loading branch information
MikeMcQuaid committed Mar 13, 2023
2 parents 78eeccf + bd1d668 commit 488728e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/download_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ def configure_sparse_checkout
args: ["config", "core.sparseCheckout", "true"],
chdir: cached_location

(git_dir/"info").mkpath
(git_dir/"info"/"sparse-checkout").atomic_write("#{@only_path}\n")
end
end
Expand Down

0 comments on commit 488728e

Please sign in to comment.