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"],
chdir: cached_location
if partial_clone_sparse_checkout?
command! "git",
args: ["config", "origin.partialclonefilter", "blob:none"],
chdir: cached_location
configure_sparse_checkout
end
return unless partial_clone_sparse_checkout?
command! "git",
args: ["config", "origin.partialclonefilter", "blob:none"],
chdir: cached_location
configure_sparse_checkout
end
sig { params(timeout: T.nilable(Time)).void }
@ -1047,7 +1047,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
args: ["config", "core.sparseCheckout", "true"],
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)
end
end