Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-07 15:08:05 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-07 15:08:05 +0300
commitedb317e9fe43c62229805fae529c550467ee5dc5 (patch)
tree90c590ea021e657b828685ac4459713913928dc9 /app/services/repositories/base_service.rb
parentbdd03bc52aee1c3f37e25ae9b1fc8a27885b7428 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/repositories/base_service.rb')
-rw-r--r--app/services/repositories/base_service.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/services/repositories/base_service.rb b/app/services/repositories/base_service.rb
index 13ad126f8f0..4d7e4ffe267 100644
--- a/app/services/repositories/base_service.rb
+++ b/app/services/repositories/base_service.rb
@@ -3,8 +3,6 @@
class Repositories::BaseService < BaseService
include Gitlab::ShellAdapter
- DELETED_FLAG = '+deleted'
-
attr_reader :repository
delegate :container, :disk_path, :full_path, to: :repository
@@ -21,16 +19,6 @@ class Repositories::BaseService < BaseService
gitlab_shell.mv_repository(repository.shard, from_path, to_path)
end
- # Build a path for removing repositories
- # We use `+` because its not allowed by GitLab so user can not create
- # project with name cookies+119+deleted and capture someone stalled repository
- #
- # gitlab/cookies.git -> gitlab/cookies+119+deleted.git
- #
- def removal_path
- "#{disk_path}+#{container.id}#{DELETED_FLAG}"
- end
-
# If we get a Gitaly error, the repository may be corrupted. We can
# ignore these errors since we're going to trash the repositories
# anyway.