fix(git-clean): strip the '+' other-worktree marker too #144

Merged
rootiest merged 1 commits from fix/clean-worktree-branch-marker into main 2026-09-10 01:15:44 +00:00
1 Commits
Author SHA1 Message Date
rootiest e6c6d2533d fix(git-clean): strip the '+' other-worktree marker too
git branch -vv marks column 1 with '+' (not '*') for a branch checked
out in another linked worktree. Only '*' was stripped from $1, so a
gone branch shown with '+' left a bogus "+" entry in $gone_branches
that then failed to delete: error: branch '+' not found.

Add a regression case reproducing the '+'-marked gone-branch line via
the existing git-clean mock handler in tests/test-network-fish.fish.
2026-09-09 21:14:04 -04:00