mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Fix misleading error message
The command given in the previous error message only changed the local script to executable. When running pre-commit the next time, it failed again with the same error message. The new command actually changes the script in the repository to be executable, and pre-commit runs through the next time. See also: <https://www.pixelninja.me/make-script-committed-to-git-executable/>.
This commit is contained in:
parent
0d261aaf84
commit
49b52f4c97
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def _message(path: str) -> None:
|
|||
print(
|
||||
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'`git update-index --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