jish / pre-commit

A slightly improved pre-commit hook for git
https://jish.github.io/pre-commit/
Other
796 stars 96 forks source link

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

Closed stevenbeales closed 1 year ago

stevenbeales commented 1 year ago

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)

stevenbeales commented 1 year ago

This has already been fixed in main branch.