diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-11-21 20:26:53 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-11-21 20:26:53 +0000 |
commit | 5e861a052551d307e928fa0797a64d30da380eeb (patch) | |
tree | 478c02367d7df9a25a1dcda0e5bdba20438a0c56 /lib/tasks | |
parent | 04c438065c70c1a355171b4f5001227409a512db (diff) | |
download | gitlab-ce-5e861a052551d307e928fa0797a64d30da380eeb.tar.gz |
ignore hashed repos (for now) when using `rake gitlab:cleanup:repos`
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/cleanup.rake | 5 |
1 files changed, 4 insertions, 1 deletions
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 |