fix: use realpath -m instead of cd to get absolute path for worktree base
This commit is contained in:
@@ -99,7 +99,7 @@ create_worktree() {
|
||||
fi
|
||||
|
||||
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"
|
||||
|
||||
# Cleanup any existing with same name
|
||||
|
||||
Reference in New Issue
Block a user