lib/rbs/collection/sources/git.rb in rbs-3.4.4 vs lib/rbs/collection/sources/git.rb in rbs-3.5.0.pre.1

- old
+ new

@@ -150,15 +150,10 @@ end private def need_to_fetch?(revision) return true unless commit_hash? - begin - git('cat-file', '-e', revision) - false - rescue CommandError - true - end + !git?('cat-file', '-e', revision) end private def git_dir @git_dir ||= ( base = Pathname(ENV['XDG_CACHE_HOME'] || File.expand_path("~/.cache"))