Skip to content

Commit 202a8f6

Browse files
jolheiserlafriks
authored andcommitted
Use correct remote on Windows (#6313)
1 parent b2e9894 commit 202a8f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pr/checkout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func main() {
200200
log.Printf("Fetching PR #%s in %s\n", pr, branch)
201201
if runtime.GOOS == "windows" {
202202
//Use git cli command for windows
203-
runCmd("git", "fetch", "origin", fmt.Sprintf("pull/%s/head:%s", pr, branch))
203+
runCmd("git", "fetch", remoteUpstream, fmt.Sprintf("pull/%s/head:%s", pr, branch))
204204
} else {
205205
ref := fmt.Sprintf("refs/pull/%s/head:%s", pr, branchRef)
206206
err = repo.Fetch(&git.FetchOptions{

0 commit comments

Comments
 (0)