Skip to content

Commit f9ff366

Browse files
committed
add argument
1 parent 94b9dc7 commit f9ff366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: git2-hooks/src/hookspath.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ impl HookPaths {
133133

134134
os_str
135135
};
136-
run_command(sh_command().arg("-c").arg(command))
136+
run_command(
137+
sh_command().arg("-c").arg(command).arg(&hook),
138+
)
137139
} else {
138140
// execute hook directly
139141
match run_command(&mut Command::new(&hook)) {

0 commit comments

Comments
 (0)