From 94f08c1b8d6b193b101557995eebb02b17f70acc Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Fri, 27 Mar 2026 13:37:51 +0000 Subject: [PATCH] fix: use realpath -m instead of cd to get absolute path for worktree base --- skills/opencode-worktree/opencode-worktree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/opencode-worktree/opencode-worktree.sh b/skills/opencode-worktree/opencode-worktree.sh index 6a734a2..fdbdcc4 100644 --- a/skills/opencode-worktree/opencode-worktree.sh +++ b/skills/opencode-worktree/opencode-worktree.sh @@ -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