Appease rubocop

This commit is contained in:
Harry Marr 2022-05-02 19:58:06 -04:00
parent 7df90eb7e1
commit 1472259e1d
No known key found for this signature in database
GPG Key ID: EC359447F66859CC

View File

@ -934,12 +934,12 @@ class GitDownloadStrategy < VCSDownloadStrategy
args: ["config", "advice.detachedHead", "false"], args: ["config", "advice.detachedHead", "false"],
chdir: cached_location chdir: cached_location
if partial_clone_sparse_checkout? return unless partial_clone_sparse_checkout?
command! "git",
args: ["config", "origin.partialclonefilter", "blob:none"], command! "git",
chdir: cached_location args: ["config", "origin.partialclonefilter", "blob:none"],
configure_sparse_checkout chdir: cached_location
end configure_sparse_checkout
end end
sig { params(timeout: T.nilable(Time)).void } sig { params(timeout: T.nilable(Time)).void }
@ -1047,7 +1047,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
args: ["config", "core.sparseCheckout", "true"], args: ["config", "core.sparseCheckout", "true"],
chdir: cached_location chdir: cached_location
sparse_checkout_paths = @only_paths.join("\n") + "\n" sparse_checkout_paths = "#{@only_paths.join("\n")}\n"
(git_dir/"info"/"sparse-checkout").atomic_write(sparse_checkout_paths) (git_dir/"info"/"sparse-checkout").atomic_write(sparse_checkout_paths)
end end
end end