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:
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user