Skip to content

Commit

Permalink
fix push mirrors URL are no longer displayed on the UI (go-gitea#20011)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored and Sysoev, Vladimir committed Aug 10, 2022
1 parent 554ea65 commit 3b6e34e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/templates/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 3b6e34e

Please sign in to comment.