Skip to content

Commit bd70bc1

Browse files
committed
Add instruction to change executable mode on windows
1 parent 0a88f14 commit bd70bc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pre_commit_hooks/check_shebang_scripts_are_executable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def _message(path: str) -> None:
3434
f'{path}: has a shebang but is not marked executable!\n'
3535
f' If it is supposed to be executable, try: '
3636
f'`chmod +x {shlex.quote(path)}`\n'
37+
f' If on Windows, you may also need to: '
38+
f'`git add --chmod=+x {shlex.quote(path)}`\n'
3739
f' If it not supposed to be executable, double-check its shebang '
3840
f'is wanted.\n',
3941
file=sys.stderr,

0 commit comments

Comments
 (0)