diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 11:22:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-08-30 11:22:57 +0000 |
commit | 16e677e925131974acbd67131124e11301d127b4 (patch) | |
tree | dc6734c39114c88aeeeb6b72c46b141489cd66f5 /pre_commit/commands/init_templatedir.py | |
parent | Releasing debian version 2.6.0-1. (diff) | |
download | pre-commit-16e677e925131974acbd67131124e11301d127b4.tar.xz pre-commit-16e677e925131974acbd67131124e11301d127b4.zip |
Merging upstream version 2.7.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/commands/init_templatedir.py')
-rw-r--r-- | pre_commit/commands/init_templatedir.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pre_commit/commands/init_templatedir.py b/pre_commit/commands/init_templatedir.py index f676fb1..5f17d9c 100644 --- a/pre_commit/commands/init_templatedir.py +++ b/pre_commit/commands/init_templatedir.py @@ -15,10 +15,15 @@ def init_templatedir( store: Store, directory: str, hook_types: Sequence[str], + skip_on_missing_config: bool = True, ) -> int: install( - config_file, store, hook_types=hook_types, - overwrite=True, skip_on_missing_config=True, git_dir=directory, + config_file, + store, + hook_types=hook_types, + overwrite=True, + skip_on_missing_config=skip_on_missing_config, + git_dir=directory, ) try: _, out, _ = cmd_output('git', 'config', 'init.templateDir') |