We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95d75c0 commit 87bffabCopy full SHA for 87bffab
pkg/hooks/hooks.go
@@ -21,7 +21,7 @@ func Path(ctx context.Context) (string, error) {
21
return "", err
22
}
23
24
- return strings.TrimSuffix(conv.String(out), "\n"), nil
+ return filepath.Clean(filepath.Join(strings.TrimSuffix(conv.String(out), "\n"), "hooks")), nil
25
26
27
// Install installs the hook
0 commit comments