mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
Add 'install-hooks' to COMMANDS_NO_GIT
This commit is contained in:
parent
2ac26e221c
commit
83cecf6e18
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ logger = logging.getLogger('pre_commit')
|
||||||
os.environ.pop('__PYVENV_LAUNCHER__', None)
|
os.environ.pop('__PYVENV_LAUNCHER__', None)
|
||||||
|
|
||||||
|
|
||||||
COMMANDS_NO_GIT = {'clean', 'gc', 'init-templatedir', 'sample-config'}
|
COMMANDS_NO_GIT = {
|
||||||
|
'clean', 'gc', 'init-templatedir', 'install-hooks', 'sample-config'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def _add_config_option(parser: argparse.ArgumentParser) -> None:
|
def _add_config_option(parser: argparse.ArgumentParser) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue