diff options
author | Mohamed Sekour | 2022-06-18 05:30:26 +0200 |
---|---|---|
committer | GitHub | 2022-06-18 11:30:26 +0800 |
commit | fd0d481de8ae8a94b56038da4258fb0cdc0a18a3 (patch) | |
tree | c672da7c88bde3e8ce5f46b262debc4726d6dedd | |
parent | 8eefe2af45f55f470e427ad30eb1aa316ec8cb73 (diff) |
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>
-rw-r--r-- | modules/templates/helper.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index b77928fc9..99b197996 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -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 == "" { |