fix(workflow): quote path variables in workspace next-step examples (#2096)
Display examples showing 'cd $TARGET_PATH' and 'cd $WORKSPACE_PATH/repo1' were unquoted, causing path splitting when project paths contain spaces (e.g. Windows paths like C:\Users\First Last\...). Quote all path variable references in user-facing guidance blocks so the examples shown to users are safe to copy-paste directly. The actual bash execution blocks (git worktree add, rm -rf, etc.) were already correctly quoted — this fixes only the display examples. Fixes #2088 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -202,7 +202,7 @@ Workspace created: $TARGET_PATH
|
|||||||
Branch: $BRANCH_NAME
|
Branch: $BRANCH_NAME
|
||||||
|
|
||||||
Next steps:
|
Next steps:
|
||||||
cd $TARGET_PATH
|
cd "$TARGET_PATH"
|
||||||
/gsd-new-project # Initialize GSD in the workspace
|
/gsd-new-project # Initialize GSD in the workspace
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ Workspace created with $SUCCESS_COUNT of $TOTAL_COUNT repos: $TARGET_PATH
|
|||||||
Failed: repo3 (branch already exists), repo4 (not a git repo)
|
Failed: repo3 (branch already exists), repo4 (not a git repo)
|
||||||
|
|
||||||
Next steps:
|
Next steps:
|
||||||
cd $TARGET_PATH
|
cd "$TARGET_PATH"
|
||||||
/gsd-new-project # Initialize GSD in the workspace
|
/gsd-new-project # Initialize GSD in the workspace
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ Use AskUserQuestion:
|
|||||||
- header: "Initialize GSD"
|
- header: "Initialize GSD"
|
||||||
- question: "Would you like to initialize a GSD project in the new workspace?"
|
- question: "Would you like to initialize a GSD project in the new workspace?"
|
||||||
- options:
|
- options:
|
||||||
- "Yes — run /gsd-new-project" → tell user to `cd $TARGET_PATH` first, then run `/gsd-new-project`
|
- "Yes — run /gsd-new-project" → tell user to `cd "$TARGET_PATH"` first, then run `/gsd-new-project`
|
||||||
- "No — I'll set it up later" → done
|
- "No — I'll set it up later" → done
|
||||||
|
|
||||||
</process>
|
</process>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ Cannot remove workspace "$WORKSPACE_NAME" — the following repos have uncommitt
|
|||||||
- repo2
|
- repo2
|
||||||
|
|
||||||
Commit or stash changes in these repos before removing the workspace:
|
Commit or stash changes in these repos before removing the workspace:
|
||||||
cd $WORKSPACE_PATH/repo1
|
cd "$WORKSPACE_PATH/repo1"
|
||||||
git stash # or git commit
|
git stash # or git commit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user