1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-07 09:15:53 +01:00

fix push mirrors URL are no longer displayed on the UI (#20011)

* fix push mirrors URL are no longer displayed on the UI

Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>

* Update modules/templates/helper.go

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Mohamed Sekour 2022-06-18 05:30:26 +02:00 committed by GitHub
parent 8eefe2af45
commit fd0d481de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -976,9 +976,6 @@ type remoteAddress struct {
func mirrorRemoteAddress(ctx context.Context, m *repo_model.Repository, remoteName string) remoteAddress { func mirrorRemoteAddress(ctx context.Context, m *repo_model.Repository, remoteName string) remoteAddress {
a := remoteAddress{} a := remoteAddress{}
if !m.IsMirror {
return a
}
remoteURL := m.OriginalURL remoteURL := m.OriginalURL
if remoteURL == "" { if remoteURL == "" {