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.
This commit is contained in:
2026-03-09 12:20:25 +01:00
parent 4b3c42ad5c
commit 1b920d7299
+1 -1
View File
@@ -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"