Merge pull request #14957 from hmarr/create-git-info-dir

Create .git/info dir if it doesn't exist
This commit is contained in:
Mike McQuaid 2023-03-13 22:12:03 +00:00 committed by GitHub
commit 488728e979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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