Add an explicit --config to the default hook template.

This commit is contained in:
Bauke 2022-11-01 13:42:14 +01:00
parent 4dab507636
commit 06899c42c7
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ fn main() -> Result<()> {
for hook_type in HOOK_TYPES { for hook_type in HOOK_TYPES {
let mut context = Context::new(); let mut context = Context::new();
context.insert("config_path", &config.general.config);
context.insert("hook_type", hook_type); context.insert("hook_type", hook_type);
let hook_path = git_hooks_dir.join(hook_type); let hook_path = git_hooks_dir.join(hook_type);

View File

@ -2,4 +2,4 @@
# Installed by Hooked. # Installed by Hooked.
hooked run {{ hook_type }} hooked run {{ hook_type }} --config {{ config_path }}