lib/rbs/collection/sources/git.rb in rbs-1.7.0.beta.4 vs lib/rbs/collection/sources/git.rb in rbs-1.7.0.beta.5

- old
+ new

@@ -100,10 +100,15 @@ if git_dir.join('.git').directory? if need_to_fetch?(revision) 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 git 'checkout', "origin/#{revision}" # for branch name as `revision` rescue CommandError