Browse Source

Use correct remote on Windows (#6313)

master
John Olheiser Lauris BH 6 years ago
parent
commit
202a8f6ed9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      contrib/pr/checkout.go

+ 1
- 1
contrib/pr/checkout.go View File

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


Loading…
Cancel
Save