From 5e861a052551d307e928fa0797a64d30da380eeb Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Tue, 21 Nov 2017 20:26:53 +0000 Subject: ignore hashed repos (for now) when using `rake gitlab:cleanup:repos` --- lib/tasks/gitlab/cleanup.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/tasks') diff --git a/lib/tasks/gitlab/cleanup.rake b/lib/tasks/gitlab/cleanup.rake index 91c74bfb6b4..301affc9522 100644 --- a/lib/tasks/gitlab/cleanup.rake +++ b/lib/tasks/gitlab/cleanup.rake @@ -59,7 +59,10 @@ namespace :gitlab do .sub(%r{^/*}, '') .chomp('.git') .chomp('.wiki') - next if Project.find_by_full_path(repo_with_namespace) + + # TODO ignoring hashed repositories for now. But revisit to fully support + # possible orphaned hashed repos + next if repo_with_namespace.start_with?('@hashed/') || Project.find_by_full_path(repo_with_namespace) new_path = path + move_suffix puts path.inspect + ' -> ' + new_path.inspect -- cgit v1.2.1