PRTest: specify remote repository for gh cli (#216668)

This commit is contained in:
Alexander Mnich
2025-02-06 18:03:54 +01:00
committed by GitHub
parent 873e72880a
commit 1d9c23ae3b
+1 -1
View File
@@ -34,7 +34,7 @@ if (-Not (Get-Command 'git' -ErrorAction 'SilentlyContinue')) {
return
}
gh pr checkout $PullRequest $(if (!$KeepBranch) { '--detach' }) -f | Out-Null
gh pr checkout $PullRequest $(if (!$KeepBranch) { '--detach' }) -f -R $repositoryRoot | Out-Null
if ($LASTEXITCODE -ne 0) {
Write-Host "There was an error checking out the PR. Make sure you're logged into GitHub via 'gh auth login' and come back here!" -ForegroundColor Red