From 1d9c23ae3b0301b2e1ab8322587263979b8f2f1b Mon Sep 17 00:00:00 2001 From: Alexander Mnich <56564725+a-mnich@users.noreply.github.com> Date: Thu, 6 Feb 2025 18:03:54 +0100 Subject: [PATCH] PRTest: specify remote repository for gh cli (#216668) --- Tools/PRTest.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/PRTest.ps1 b/Tools/PRTest.ps1 index f6a1703fc15..0f0d5cb44fe 100644 --- a/Tools/PRTest.ps1 +++ b/Tools/PRTest.ps1 @@ -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