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: handle spaces in home directory paths on Windows (#94)
* fix: handle spaces in home directory paths on Windows
- expandHome: support ~\ (backslash) prefix and expand $HOME/${HOME}/%USERPROFILE% via os.ExpandEnv
- remove: use porcelain worktree list to avoid strings.Fields splitting paths with spaces
- shellenv: shell-quote arguments in Linux script(1) invocation to preserve spaces
- config template: quote $WT_PATH/$WT_MAIN in hook examples
Closes#93
* fix: expand Windows %VAR% style environment variables in config paths
os.ExpandEnv only handles $VAR and ${VAR}. Add expandWindowsEnv for
%USERPROFILE% and similar Windows-style variables, called on Windows only.
Follow-up from Codex review of #94.
* fix: expand env vars in tilde paths like ~/$TEAM/worktrees
The tilde branch returned early, skipping os.ExpandEnv. Now env
expansion runs on all paths including those starting with ~.
Follow-up from Codex review round 2.
* fix: check return value of os.Stdout.WriteString (errcheck)
0 commit comments