summaryrefslogtreecommitdiff
path: root/app/services/projects
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-08-25 23:00:06 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-08-25 23:00:06 +0800
commit081e2fce8240f86f991b0bd3653ef6756f2cf9aa (patch)
treeb24f7d3bef1c55d527901e210ef22d32022b579c /app/services/projects
parentd1054bd3ddb48c15b6a3a53f8c57974208094106 (diff)
downloadgitlab-ce-081e2fce8240f86f991b0bd3653ef6756f2cf9aa.tar.gz
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')
-rw-r--r--app/services/projects/after_import_service.rb5
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