You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check-executables-have-shebangs Should Check Executable Bit According to Git Rather Than File System #690
Running check-executables-have-shebangs from WSL (e.g., Ubuntu) on the Windows file system results in "marked executable but has no (or invalid) shebang!" for every file without a shebang. In this (and every other) situation, one could instead parse the output of git ls-tree to determine which files are executable. Another option would be to run git add --chmod=-x on all files without a shebang, which should work on both Windows and Linux, but would change the behavior of the hook from read-only to auto-fix, and has the drawback of being anti-helpful when the file was supposed to be marked executable but was lacking a shebang.
Activity
asottile commentedon Nov 21, 2021
dupe #512
Kurt-von-Laven commentedon Mar 31, 2022
I believe this should be reopened now that #512 has been closed in favor of #730.