Commit graph

3 commits

Author SHA1 Message Date
Thomas Aglassinger
49b52f4c97
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/>.
2022-01-07 03:45:07 +01:00
Anthony Sottile
39ab2ed85e replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
Ville Skyttä
391ae30a64 Add check for executability of scripts with shebangs
Closes https://github.com/pre-commit/pre-commit-hooks/issues/543
2021-05-04 18:45:43 -07:00