Add an explicit --config to the default hook template.
This commit is contained in:
parent
4dab507636
commit
06899c42c7
|
@ -45,6 +45,7 @@ fn main() -> Result<()> {
|
|||
|
||||
for hook_type in HOOK_TYPES {
|
||||
let mut context = Context::new();
|
||||
context.insert("config_path", &config.general.config);
|
||||
context.insert("hook_type", hook_type);
|
||||
|
||||
let hook_path = git_hooks_dir.join(hook_type);
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
# Installed by Hooked.
|
||||
|
||||
hooked run {{ hook_type }}
|
||||
hooked run {{ hook_type }} --config {{ config_path }}
|
||||
|
|
Loading…
Reference in New Issue