Skip to content

Commit 87bffab

Browse files
committed
fix: use hooks folder
1 parent 95d75c0 commit 87bffab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/hooks/hooks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func Path(ctx context.Context) (string, error) {
2121
return "", err
2222
}
2323

24-
return strings.TrimSuffix(conv.String(out), "\n"), nil
24+
return filepath.Clean(filepath.Join(strings.TrimSuffix(conv.String(out), "\n"), "hooks")), nil
2525
}
2626

2727
// Install installs the hook

0 commit comments

Comments
 (0)