Skip to content

Commit 3ba47c8

Browse files
Ralph Agentclaude
andcommitted
🐛 Fix hooks step: replace .githooks with pre-commit install
The .githooks directory was removed when migrating to pre-commit framework, but the onboard CLI still referenced it via git config core.hooksPath. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e58c79e commit 3ba47c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onboard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def hooks() -> None:
426426

427427
if activate:
428428
result = subprocess.run(
429-
["git", "config", "core.hooksPath", ".githooks"],
429+
["pre-commit", "install"],
430430
cwd=PROJECT_ROOT,
431431
capture_output=True,
432432
text=True,
@@ -438,7 +438,7 @@ def hooks() -> None:
438438
else:
439439
rprint(
440440
"[yellow]Skipped.[/yellow] You can activate later with: "
441-
"[bold]git config core.hooksPath .githooks[/bold]"
441+
"[bold]pre-commit install[/bold]"
442442
)
443443

444444

0 commit comments

Comments
 (0)