summaryrefslogtreecommitdiffstats
path: root/contrib/pr
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2020-08-05 22:15:57 +0300
committerGitHub <noreply@github.com>2020-08-05 20:15:57 +0100
commit42a31c797b2e8ec38466e41e2e069d1352391348 (patch)
treee4fa09c9975e3fe2fc6bb12ec66d2d5581865524 /contrib/pr
parent2872a04f2796b369fb388c6f34780bbda2e64710 (diff)
downloadgitea-42a31c797b2e8ec38466e41e2e069d1352391348.tar.gz
gitea-42a31c797b2e8ec38466e41e2e069d1352391348.zip
Fix correct upstream remote HTTPS URL (#12436)
Diffstat (limited to 'contrib/pr')
-rw-r--r--contrib/pr/checkout.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/pr/checkout.go b/contrib/pr/checkout.go
index e55fa735dc..b4cf80ed4c 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
}