From 42a31c797b2e8ec38466e41e2e069d1352391348 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 5 Aug 2020 22:15:57 +0300 Subject: [PATCH] Fix correct upstream remote HTTPS URL (#12436) --- contrib/pr/checkout.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go index e55fa735d..b4cf80ed4 100644 --- a/contrib/pr/checkout.go +++ b/contrib/pr/checkout.go @@ -198,7 +198,9 @@ func main() { } remoteUpstream := "origin" //Default for _, r := range remotes { - if r.Config().URLs[0] == "https://github.com/go-gitea/gitea" || r.Config().URLs[0] == "git@github.com:go-gitea/gitea.git" { //fetch at index 0 + if r.Config().URLs[0] == "https://github.com/go-gitea/gitea.git" || + r.Config().URLs[0] == "https://github.com/go-gitea/gitea" || + r.Config().URLs[0] == "git@github.com:go-gitea/gitea.git" { //fetch at index 0 remoteUpstream = r.Config().Name break }