fix: use realpath -m instead of cd to get absolute path for worktree base

This commit is contained in:
shokollm
2026-03-27 13:37:51 +00:00
parent 2010275dda
commit 94f08c1b8d

View File

@@ -99,7 +99,7 @@ create_worktree() {
fi fi
local worktree_path_abs local worktree_path_abs
worktree_path_abs="$(cd "$WORKTREE_BASE" && pwd)/$worktree_name" worktree_path_abs="$(realpath -m "$WORKTREE_BASE")/$worktree_name"
local worktree_path="$worktree_path_abs" local worktree_path="$worktree_path_abs"
# Cleanup any existing with same name # Cleanup any existing with same name