mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Appease rubocop
This commit is contained in:
parent
7df90eb7e1
commit
1472259e1d
@ -934,13 +934,13 @@ class GitDownloadStrategy < VCSDownloadStrategy
|
||||
args: ["config", "advice.detachedHead", "false"],
|
||||
chdir: cached_location
|
||||
|
||||
if partial_clone_sparse_checkout?
|
||||
return unless partial_clone_sparse_checkout?
|
||||
|
||||
command! "git",
|
||||
args: ["config", "origin.partialclonefilter", "blob:none"],
|
||||
chdir: cached_location
|
||||
configure_sparse_checkout
|
||||
end
|
||||
end
|
||||
|
||||
sig { params(timeout: T.nilable(Time)).void }
|
||||
def update_repo(timeout: nil)
|
||||
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user