diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 12:08:04 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-30 12:08:04 +0300 |
commit | 5c229c2ebe3304a58afd1d40418410a8c3723ea5 (patch) | |
tree | f6c0e2cff171825ce027b5a30225e05dcdbad59d /app/models | |
parent | e05c9eaaa97aca4cd530f72652cb22dfb7305732 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/remote_mirror.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/remote_mirror.rb b/app/models/remote_mirror.rb index f8d500e106b..45487cb908d 100644 --- a/app/models/remote_mirror.rb +++ b/app/models/remote_mirror.rb @@ -20,7 +20,7 @@ class RemoteMirror < ApplicationRecord belongs_to :project, inverse_of: :remote_mirrors - validates :url, presence: true, public_url: { schemes: %w(ssh git http https), allow_blank: true, enforce_user: true } + validates :url, presence: true, public_url: { schemes: Project::VALID_MIRROR_PROTOCOLS, allow_blank: true, enforce_user: true } after_save :set_override_remote_mirror_available, unless: -> { Gitlab::CurrentSettings.current_application_settings.mirror_available } after_update :reset_fields, if: :saved_change_to_mirror_url? |