Skip to content

Commit

Permalink
Fix correct upstream remote HTTPS URL (go-gitea#12436)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks authored Aug 5, 2020
1 parent 2872a04 commit 42a31c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/pr/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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] == "[email protected]: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] == "[email protected]:go-gitea/gitea.git" { //fetch at index 0
remoteUpstream = r.Config().Name
break
}
Expand Down

0 comments on commit 42a31c7

Please sign in to comment.