Skip to content

Commit

Permalink
Merge pull request #805 from pocke/Use_partial_clone_for_rbs_collecti…
Browse files Browse the repository at this point in the history
…on_installer

Use partial clone for rbs collection installer
  • Loading branch information
pocke authored Sep 28, 2021
2 parents ebfb3db + 4327d31 commit 2718589
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rbs/collection/sources/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ def to_lockfile
git 'fetch', 'origin'
end
else
git 'clone', remote, git_dir.to_s
begin
# git v2.27.0 or greater
git 'clone', '--filter=blob:none', remote, git_dir.to_s
rescue CommandError
git 'clone', remote, git_dir.to_s
end
end

begin
Expand Down

0 comments on commit 2718589

Please sign in to comment.