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 <[email protected]>

* Update modules/templates/helper.go

Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
This commit is contained in:
Mohamed Sekour
2022-06-18 11:30:26 +08:00
committed by GitHub
co-authored by zeripath Lunny Xiao
parent 8eefe2af45
commit fd0d481de8
-3
View File
@@ -976,9 +976,6 @@ type remoteAddress struct {
func mirrorRemoteAddress(ctx context.Context, m *repo_model.Repository, remoteName string) remoteAddress {
a := remoteAddress{}
if !m.IsMirror {
return a
}
remoteURL := m.OriginalURL
if remoteURL == "" {