summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMohamed Sekour <mohamed.sekour@exfo.com>2022-06-18 05:30:26 +0200
committerGitHub <noreply@github.com>2022-06-18 11:30:26 +0800
commitfd0d481de8ae8a94b56038da4258fb0cdc0a18a3 (patch)
treec672da7c88bde3e8ce5f46b262debc4726d6dedd /modules
parent8eefe2af45f55f470e427ad30eb1aa316ec8cb73 (diff)
downloadgitea-fd0d481de8ae8a94b56038da4258fb0cdc0a18a3.tar.gz
gitea-fd0d481de8ae8a94b56038da4258fb0cdc0a18a3.zip
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>
Diffstat (limited to 'modules')
-rw-r--r--modules/templates/helper.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b77928fc9c..99b1979964 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 == "" {