download_strategy: disable Git fsmonitor
Enabling the fsmonitor isn't useful for these repositories. Moreover, disabling them will get rid of the warning shown from trying to copy sockets from a repo watched by the fsmonitor.
This commit is contained in:
parent
4ddebd9bd5
commit
35a8a5dd3d
@ -915,7 +915,8 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
|
|
||||||
args << "--no-checkout" << "--filter=blob:none" if partial_clone_sparse_checkout?
|
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
|
args << @url << cached_location.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -948,6 +949,9 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
|||||||
command! "git",
|
command! "git",
|
||||||
args: ["config", "advice.detachedHead", "false"],
|
args: ["config", "advice.detachedHead", "false"],
|
||||||
chdir: cached_location
|
chdir: cached_location
|
||||||
|
command! "git",
|
||||||
|
args: ["config", "core.fsmonitor", "false"],
|
||||||
|
chdir: cached_location
|
||||||
|
|
||||||
return unless partial_clone_sparse_checkout?
|
return unless partial_clone_sparse_checkout?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user