mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 16:52:40 +01:00
Fix correct upstream remote HTTPS URL (#12436)
This commit is contained in:
parent
2872a04f27
commit
42a31c797b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue