Merge pull request #15293 from carlocab/git-download-fsmonitor
download_strategy: disable Git fsmonitor
This commit is contained in:
commit
eec937f233
@ -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?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user