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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user