Check Git core.fileMode rather than infer from OS. by Kurt-von-Laven · Pull Request #730 · pre-commit/pre-commit-hooks
changed the title
Check Git file mode rather than infer from OS.
Check Git core.fileMode rather than infer from OS.
There was already a guard preventing the check-executables-have-shebangs hook from raising false positives on win32 by looking up the Git file mode rather than relying on the file mode in the file system. Git already automatically probes the file system for executable bit support. Leverage Git's core.fileMode config variable to prevent false positives on all file systems that don't track executable bits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters