Update git-worktree-create to create at sibling level

This commit is contained in:
2026-05-15 13:26:05 +02:00
parent 75daf31e1b
commit 5b4ab46471

View File

@@ -9,7 +9,7 @@ export default tool({
},
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 ../${worktreeDir} ${args.branch}`.text()
return result.trim()
},
})