mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Allow --hook-type to be specified multiple times
This commit is contained in:
parent
96c35185f0
commit
a18646deb2
6 changed files with 119 additions and 79 deletions
|
|
@ -8,10 +8,10 @@ from pre_commit.util import cmd_output
|
|||
logger = logging.getLogger('pre_commit')
|
||||
|
||||
|
||||
def init_templatedir(config_file, store, directory, hook_type):
|
||||
def init_templatedir(config_file, store, directory, hook_types):
|
||||
install(
|
||||
config_file, store, overwrite=True, hook_type=hook_type,
|
||||
skip_on_missing_config=True, git_dir=directory,
|
||||
config_file, store, hook_types=hook_types,
|
||||
overwrite=True, skip_on_missing_config=True, git_dir=directory,
|
||||
)
|
||||
try:
|
||||
_, out, _ = cmd_output('git', 'config', 'init.templateDir')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue