Commit Graph

15 Commits

Author SHA1 Message Date
Anthony Sottile
916ca72bb1 Use some bash best practices and simplify hook template 2017-09-21 16:09:49 -07:00
Anthony Sottile
873dd173ce Use pipes.quote for executable path 2017-09-21 15:16:48 -07:00
Anthony Sottile
bfa23f1f4f Merge pull request #606 from pre-commit/minor-hook-tmpl-fixups
Fix error message during pre-push / commit-msg
2017-09-05 10:22:43 -07:00
Anthony Sottile
7c59607d35 Fix error message during pre-push / commit-msg 2017-09-05 09:33:51 -07:00
Anthony Sottile
95f356d64e Also add run to the other invocations 2017-09-05 09:29:18 -07:00
Anthony Sottile
eb7c9f44b4 Add test for custom config installation 2017-09-05 09:27:00 -07:00
wanghui
f9a849abcc Fix specify config file not work while installing
Via `pre-commit install -c .other-config.yaml`
2017-09-05 16:22:54 +08:00
Anthony Sottile
d0b268c813 Add support for commit-msg git hook 2017-07-23 20:50:25 -07:00
Anthony Sottile
dbd131f646 Minor fixups 2017-02-23 13:11:40 -08:00
Filippos Giannakos
2f4199850d Add --allow-missing-config option to install
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.

This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
36cfeac952 hook-tmpl doesn't need executable bit, we set it 2017-02-15 08:51:06 -08:00
Anthony Sottile
6eb260f774 Fixups and test for pre-commit/pre-commit#277 2015-10-08 19:08:49 -07:00
Barry Steyn
dd73ffd02f Filtering of hooks for commit or push stages 2015-10-05 07:17:20 -07:00
Anthony Sottile
febb270afe Bump magic numbers 2015-01-14 20:27:37 -08:00
dongweiming
b707cbba06 Make pre_commit also support pre-push hook 2015-01-14 19:26:37 -08:00