diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-03-12 12:47:04 -0500 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-03-12 19:47:04 +0200 |
commit | 202a8f6ed9829e3b865bc886b0230ca91e6e9f16 (patch) | |
tree | a72ffa4c972427567622351fe04f3645901715b9 /contrib/pr | |
parent | b2e9894988a8cb486f8838f4bf532401124802c4 (diff) | |
download | gitea-202a8f6ed9829e3b865bc886b0230ca91e6e9f16.tar.gz gitea-202a8f6ed9829e3b865bc886b0230ca91e6e9f16.zip |
Use correct remote on Windows (#6313)
Diffstat (limited to 'contrib/pr')
-rw-r--r-- | contrib/pr/checkout.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index 903a94454c..2eed07631f 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.go @@ -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{ |