From aeff8d34fed39c1137561903709e46f50b04575d Mon Sep 17 00:00:00 2001 From: Oleh Khomei Date: Tue, 10 Jan 2023 20:20:03 +0200 Subject: [PATCH] Use File.exist? instead of exists? --- lib/git-smart/git_repo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git-smart/git_repo.rb b/lib/git-smart/git_repo.rb index a517440..3cf0701 100644 --- a/lib/git-smart/git_repo.rb +++ b/lib/git-smart/git_repo.rb @@ -20,7 +20,7 @@ def initialize(dir) def git_dir gitdir = Pathname.new(@dir).join('.git') - unless File.exists?(gitdir) + unless File.exist?(gitdir) @dir = git('rev-parse', '--show-toplevel').chomp gitdir = Pathname.new(@dir).join('.git') unless @dir.empty? end