You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: warn when --config path doesn't exist, fix shell quoting in docs (#895)
* fix: warn when --config path doesn't exist, fix shell quoting in docs
Bug fixes from adversarial testing:
1. --config path warning: When users pass --config with a non-existent
file path, wt now warns instead of silently falling back to defaults.
Note: WORKTRUNK_CONFIG_PATH env var doesn't trigger this warning since
it's commonly used for test isolation with intentionally absent paths.
2. Shell quoting in docs: Template variables are automatically shell-escaped,
so user-added quotes cause issues with special characters. Fixed examples
in hook docs and tips-patterns that incorrectly showed quoted variables.
Also adds:
- Test verifying --squash is correctly ignored with --no-commit
- Tests for ANSI escape sequence handling in branch names
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: skip ANSI branch name test on Windows
Git for Windows with MSYS2 bash behaves differently and may accept
branch names containing control characters. The test verifies Unix git
behavior, so restrict it to Unix platforms.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments