diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-25 18:00:06 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-25 18:00:06 +0300 |
commit | 081e2fce8240f86f991b0bd3653ef6756f2cf9aa (patch) | |
tree | b24f7d3bef1c55d527901e210ef22d32022b579c /app/services/projects/after_import_service.rb | |
parent | d1054bd3ddb48c15b6a3a53f8c57974208094106 (diff) |
Try to make reserved ref names more obvious
So that whenever we want to reserve more, we're aware,
and don't mess it up.
Diffstat (limited to 'app/services/projects/after_import_service.rb')
-rw-r--r-- | app/services/projects/after_import_service.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/services/projects/after_import_service.rb b/app/services/projects/after_import_service.rb index bbada7e2b1c..107856885f3 100644 --- a/app/services/projects/after_import_service.rb +++ b/app/services/projects/after_import_service.rb @@ -1,10 +1,7 @@ module Projects class AfterImportService - RESERVED_REFS_NAMES = - %w[heads tags merge-requests keep-around environments].freeze - RESERVED_REFS_REGEXP = - %r{\Arefs/(?:#{Regexp.union(*RESERVED_REFS_NAMES)})/} + %r{\Arefs/(?:#{Regexp.union(*Repository::RESERVED_REFS_NAMES)})/} def initialize(project) @project = project |