Fix check-added-large-files --enforce-all to correctly consider all g… · lircs/pre-commit-hooks@03a65ca · GitHub
Skip to content

Commit 03a65ca

Browse files
amartaniasottile
authored andcommitted
Fix check-added-large-files --enforce-all to correctly consider all git-lfs files.
`git lfs status` only outputs status for files that are pending some git-lfs related operation. For usage with --enforce-all, we need the list of all files that are tracked, which can be achived by `git lfs ls-files`. Fixes: pre-commit#560
1 parent b8d7678 commit 03a65ca

2 files changed

Lines changed: 35 additions & 11 deletions

File tree

pre_commit_hooks/check_added_large_files.py

Lines changed: 22 additions & 11 deletions

tests/check_added_large_files_test.py

Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)