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 == "" {