Merge pull request #15293 from carlocab/git-download-fsmonitor

download_strategy: disable Git fsmonitor
This commit is contained in:
Mike McQuaid 2023-04-24 09:22:50 +01:00 committed by GitHub
commit eec937f233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -915,7 +915,8 @@ class GitDownloadStrategy < VCSDownloadStrategy
args << "--no-checkout" << "--filter=blob:none" if partial_clone_sparse_checkout?
args << "-c" << "advice.detachedHead=false" # silences detached head warning
args << "--config" << "advice.detachedHead=false" # silences detached head warning
args << "--config" << "core.fsmonitor=false" # prevent fsmonitor from watching this repo
args << @url << cached_location.to_s
end
@ -948,6 +949,9 @@ class GitDownloadStrategy < VCSDownloadStrategy
command! "git",
args: ["config", "advice.detachedHead", "false"],
chdir: cached_location
command! "git",
args: ["config", "core.fsmonitor", "false"],
chdir: cached_location
return unless partial_clone_sparse_checkout?