You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2026/10/08 14:17:31 UTC

(tinkerpop) 01/03: Fix tinker-review build worktree conflicting with the src/ worktree

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit 9e94e7c22815a57a5f51af35276535901e821eb6
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Thu Oct 8 10:16:25 2026 -0400

    Fix tinker-review build worktree conflicting with the src/ worktree
    
    Assisted-by: Claude Code:claude-opus-5-5
---
 .skills/tinker-review/scripts/functional/setup.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.skills/tinker-review/scripts/functional/setup.js b/.skills/tinker-review/scripts/functional/setup.js
index 33a633856b..566d26d5e9 100644
--- a/.skills/tinker-review/scripts/functional/setup.js
+++ b/.skills/tinker-review/scripts/functional/setup.js
@@ -154,7 +154,9 @@ export async function buildAndStart(workDir, opts) {
     await exec("git", ["worktree", "remove", "--force", buildWorktree], { cwd: repoPath }).catch(() => {});
   }
   await exec("git", ["worktree", "prune"], { cwd: repoPath }).catch(() => {});
-  await exec("git", ["worktree", "add", buildWorktree, prBranch], { cwd: repoPath });
+  // Detached: prBranch is already checked out in the src/ worktree, and git
+  // refuses to check out one branch in two worktrees.
+  await exec("git", ["worktree", "add", "--detach", buildWorktree, prBranch], { cwd: repoPath });
 
   // Full-reactor build without tests, so every module reflects the PR.
   await exec(