jish/pre-commit

Filter_files method in staged_files.rb throws an exists? not found error

Closed this issue · 1 comments

Filter_files method in staged_files.rb throws an exists? not found error.

Reason is that exists? alias has been removed in Ruby 3.2.

Line 86 of staged_files.rb should read - !File.exist?(file)

This has already been fixed in main branch.