Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
empty or contain only whitespace
* Fix handling of paths with spaces in the name
* Fix `CaseConflicts` pre-commit hook to not fail on initial commit
* Fix handling of files removed or renamed in a commit amendment

## 0.25.0

Expand Down
2 changes: 2 additions & 0 deletions lib/overcommit/hook/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def applicable_files
private

def applicable_file?(file)
return false unless File.exist?(file) || File.symlink?(file)

includes = Array(@config['include']).map do |glob|
Overcommit::Utils.convert_glob_to_absolute(glob)
end
Expand Down