Commit 82ca0857 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ee-lib-differences' into 'master'

EE: Resolve EE differences in the lib/ directory

Closes #13335

See merge request gitlab-org/gitlab-ee!15042
parents 6b450d7a f8b59ad4
...@@ -6,15 +6,14 @@ module Gitlab ...@@ -6,15 +6,14 @@ module Gitlab
module GitRefValidator module GitRefValidator
extend self extend self
EXPANDED_PREFIXES = %w(refs/heads/ refs/remotes/).freeze EXPANDED_PREFIXES = %w[refs/heads/ refs/remotes/].freeze
DISALLOWED_PREFIXES = %w(-).freeze DISALLOWED_PREFIXES = %w[-].freeze
# Validates a given name against the git reference specification # Validates a given name against the git reference specification
# #
# Returns true for a valid reference name, false otherwise # Returns true for a valid reference name, false otherwise
def validate(ref_name) def validate(ref_name)
return false if ref_name.start_with?(*EXPANDED_PREFIXES) return false if ref_name.start_with?(*(EXPANDED_PREFIXES + DISALLOWED_PREFIXES))
return false if ref_name.start_with?(*DISALLOWED_PREFIXES)
return false if ref_name == 'HEAD' return false if ref_name == 'HEAD'
begin begin
......
...@@ -71,9 +71,6 @@ project_tree: ...@@ -71,9 +71,6 @@ project_tree:
- protected_branches: - protected_branches:
- :merge_access_levels - :merge_access_levels
- :push_access_levels - :push_access_levels
- :unprotect_access_levels
- protected_environments:
- :deploy_access_levels
- protected_tags: - protected_tags:
- :create_access_levels - :create_access_levels
- :project_feature - :project_feature
...@@ -87,9 +84,6 @@ project_tree: ...@@ -87,9 +84,6 @@ project_tree:
- lists: - lists:
- label: - label:
- :priorities - :priorities
- milestone:
- events:
- :push_event_payload
# Only include the following attributes for the models specified. # Only include the following attributes for the models specified.
included_attributes: included_attributes:
...@@ -128,18 +122,10 @@ excluded_attributes: ...@@ -128,18 +122,10 @@ excluded_attributes:
- :last_activity_at - :last_activity_at
- :last_repository_updated_at - :last_repository_updated_at
- :last_repository_check_at - :last_repository_check_at
- :mirror_user_id
- :mirror_trigger_builds
- :storage_version - :storage_version
- :remote_mirror_available_overridden - :remote_mirror_available_overridden
- :only_mirror_protected_branches
- :pull_mirror_available_overridden
- :mirror_overwrites_diverged_branches
- :description_html - :description_html
- :repository_languages - :repository_languages
- :packages_enabled
- :mirror_last_update_at
- :mirror_last_successful_update_at
- :bfg_object_map - :bfg_object_map
- :detected_repository_languages - :detected_repository_languages
- :tag_list - :tag_list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment