]> source.dussan.org Git - gitea.git/commitdiff
Use correct remote on Windows (#6313)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Tue, 12 Mar 2019 17:47:04 +0000 (12:47 -0500)
committerLauris BH <lauris@nix.lv>
Tue, 12 Mar 2019 17:47:04 +0000 (19:47 +0200)
contrib/pr/checkout.go

index 903a94454cd971c3fd2e21768246c4733347d0a3..2eed07631fc08cb1bfc1979f58fe280ee96b9407 100644 (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{