Skip to content

Commit 28b0861

Browse files
committed
Address CodeRabbit review: preserve active worktree fallback path
1 parent 13a9707 commit 28b0861

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/commands/clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ cmd_clean() {
170170

171171
active_worktree_path=$(git rev-parse --show-toplevel 2>/dev/null || true)
172172
if [ -n "$active_worktree_path" ]; then
173-
active_worktree_path=$(canonicalize_path "$active_worktree_path" || true)
173+
active_worktree_path=$(canonicalize_path "$active_worktree_path" || printf "%s" "$active_worktree_path")
174174
fi
175175

176176
if [ ! -d "$base_dir" ]; then

0 commit comments

Comments
 (0)