From 1b920d7299797bfa941e3618250277ba32c99440 Mon Sep 17 00:00:00 2001 From: code-server Date: Mon, 9 Mar 2026 12:20:25 +0100 Subject: [PATCH] fix: prevent branch collision in test-pr.sh Use + refspec to force update pr-N branch on re-run. Prevents 'already exists' error when testing the same PR multiple times. Addresses review feedback from PR #32. --- test-pr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-pr.sh b/test-pr.sh index 97ccb4a..7428697 100755 --- a/test-pr.sh +++ b/test-pr.sh @@ -18,7 +18,7 @@ fi echo "==> Fetching PR #$PR_NUM..." cd "$REPO_DIR" -git fetch wylab "pull/$PR_NUM/head:pr-$PR_NUM" +git fetch wylab "+pull/$PR_NUM/head:pr-$PR_NUM" echo "==> Checking out pr-$PR_NUM..." git checkout "pr-$PR_NUM"