Skip to content

Commit e9872df

Browse files
committed
clarify project-root requirement for auto-commit script paths
1 parent bae5b96 commit e9872df

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extensions/git/commands/speckit.git.commit.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Look under the `auto_commit:` section in the config file you just read:
4040

4141
If auto-commit is enabled:
4242

43+
Before running either option, ensure your working directory is the project root (the directory that contains `.specify/`) so relative `.specify/extensions/...` script paths resolve correctly.
44+
4345
**Option A — Run the script** (preferred, handles edge cases):
4446
- **Bash (macOS/Linux)**: `.specify/extensions/git/scripts/bash/auto-commit.sh <event_name>`
4547
- **PowerShell (Windows)**: `.specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name>`

0 commit comments

Comments
 (0)