mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Add instruction to change executable mode on windows
This commit is contained in:
parent
0a88f14e07
commit
bd70bc119d
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ def _message(path: str) -> None:
|
|||
f'{path}: has a shebang but is not marked executable!\n'
|
||||
f' If it is supposed to be executable, try: '
|
||||
f'`chmod +x {shlex.quote(path)}`\n'
|
||||
f' If on Windows, you may also need to: '
|
||||
f'`git add --chmod=+x {shlex.quote(path)}`\n'
|
||||
f' If it not supposed to be executable, double-check its shebang '
|
||||
f'is wanted.\n',
|
||||
file=sys.stderr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue