Skip to content

Commit faca4ab

Browse files
committed
chore: add bun prefix to hook call
1 parent fb9d24a commit faca4ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git-hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function _setHook(hook: string, commandOrConfig: string | { stagedLint?: StagedL
401401
} else if (commandOrConfig.stagedLint || commandOrConfig['staged-lint']) {
402402
// Create a command that will execute the bun-git-hooks stagedLint handler
403403
// Use the CLI command directly
404-
hookCommand = PREPEND_SCRIPT + `git-hooks run-staged-lint ${hook}`
404+
hookCommand = PREPEND_SCRIPT + `bun git-hooks run-staged-lint ${hook}`
405405
} else {
406406
console.error(`[ERROR] Invalid command or config for hook ${hook}`)
407407
return

0 commit comments

Comments
 (0)