diff options
author | digitalMoksha <bwalker@gitlab.com> | 2017-11-24 19:29:25 +0100 |
---|---|---|
committer | digitalMoksha <bwalker@gitlab.com> | 2017-11-24 19:29:25 +0100 |
commit | 17069a9547c14c53491af76035c06dc66b8d8049 (patch) | |
tree | 394aebb6cee6a1f5c6a792f9fea199778b1667aa /lib/tasks | |
parent | b355ebc4c9b38320366d7640ecf51da23fbb7ea1 (diff) | |
download | gitlab-ce-17069a9547c14c53491af76035c06dc66b8d8049.tar.gz |
ignore hashed repositories when doing rake gitlab:cleanup:dirs
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/cleanup.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/cleanup.rake b/lib/tasks/gitlab/cleanup.rake index 301affc9522..111576ea802 100644 --- a/lib/tasks/gitlab/cleanup.rake +++ b/lib/tasks/gitlab/cleanup.rake @@ -5,7 +5,8 @@ namespace :gitlab do warn_user_is_not_gitlab remove_flag = ENV['REMOVE'] - namespaces = Namespace.pluck(:path) + namespaces = Namespace.pluck(:path) + namespaces << '@hashed' # add so that it will be ignored Gitlab.config.repositories.storages.each do |name, repository_storage| git_base_path = repository_storage['path'] all_dirs = Dir.glob(git_base_path + '/*') |