Skip to content

(CU-86bbujdhn) Quote the hook script path in .claude/settings.json - #351

Merged
zubri merged 1 commit into
mainfrom
CU-86bbujdhn_Fixing-hooks-for-Windows
Sep 4, 2026
Merged

zubri merged 1 commit into
mainfrom
CU-86bbujdhn_Fixing-hooks-for-Windows

Conversation

@zubri

@zubri zubri commented Sep 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Quote the ${CLAUDE_PROJECT_DIR} placeholder in the .claude/settings.json hook commands

These hooks already used shell form and work today, so this is hardening rather than a bug fix: sh $CLAUDE_PROJECT_DIR/x.sh breaks the day the checkout path contains a space. The hooks reference is explicit — "In shell form, wrap each placeholder in double quotes."

Companion to prowide/pw-swift-integrator#2019 and the other repos on this branch, which fixed the separate exec-form defect that broke hooks on native Windows. This change brings the last three repos to the same form, so every Prowide repo now writes hooks the same way.

No CHANGELOG entry: SCM/tooling configuration only.

Test plan

  • Trigger the hook and confirm it still fires

sh $CLAUDE_PROJECT_DIR/x.sh works until the path contains a space. The
hooks reference requires the placeholder to be double-quoted in shell
form. Aligns these repos with the form used everywhere else.
@zubri
zubri merged commit eea1518 into main Sep 4, 2026
3 checks passed
@zubri
zubri deleted the CU-86bbujdhn_Fixing-hooks-for-Windows branch September 4, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant