Repro steps
- Add a submodule
- Add a symlink to somewhere inside this submodule
- Use
check-symlinks
- Deinit submodule (to simulate the case when people clone without
--recursive)
- Notice that it now complains about the symlink created on 2
- Add an exclude entry with the path to that symlink
- Use
check-useless-excludes
- Notice that it complains that the added exclude entry doesn't apply.
For a working example, check out https://github.com/pkoch/test-check-useless-excludes (without --recursive, or run git submodule deinit --all) and run pre-commit run --all.
Repro steps
check-symlinks--recursive)check-useless-excludesFor a working example, check out https://github.com/pkoch/test-check-useless-excludes (without
--recursive, or rungit submodule deinit --all) and runpre-commit run --all.