From 3fb88b1edc52bef80ceeaeb383c6be90a7e3910a Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Sun, 17 May 2026 12:22:24 +0200 Subject: [PATCH] fixed git-worktree-create branch creation --- .opencode/tools/git-worktree-create.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.opencode/tools/git-worktree-create.ts b/.opencode/tools/git-worktree-create.ts index c36f932..d0a89a8 100644 --- a/.opencode/tools/git-worktree-create.ts +++ b/.opencode/tools/git-worktree-create.ts @@ -5,11 +5,9 @@ export default tool({ description: "Create a git worktree for a branch or PR", args: { branch: tool.schema.string().describe("Branch name or PR number"), - directory: tool.schema.string().describe("Worktree directory name (optional)"), }, async execute(args) { - const worktreeDir = args.directory || args.branch - const result = await $`git worktree add ../worktrees/${worktreeDir} ${args.branch}`.text() + const result = await $`git worktree add ../worktrees/${args.branch}`.text() return result.trim() }, }) \ No newline at end of file