1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-03 05:46:10 +02:00

Fix correct upstream remote HTTPS URL (#12436)

This commit is contained in:
Lauris BH 2020-08-05 22:15:57 +03:00 committed by GitHub
parent 2872a04f27
commit 42a31c797b
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}