Skip to content

Commit f161ed1

Browse files
mohsekzeripathlunny
authored andcommitted
fix push mirrors URL are no longer displayed on the UI (go-gitea#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]>
1 parent e249297 commit f161ed1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/templates/helper.go

-3
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,6 @@ type remoteAddress struct {
976976

977977
func mirrorRemoteAddress(ctx context.Context, m *repo_model.Repository, remoteName string) remoteAddress {
978978
a := remoteAddress{}
979-
if !m.IsMirror {
980-
return a
981-
}
982979

983980
remoteURL := m.OriginalURL
984981
if remoteURL == "" {

0 commit comments

Comments
 (0)