diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-29 19:02:45 +0400 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-09-29 19:02:45 +0400 |
commit | 51f8352dcad8108a5af9a65c85e99a3e5a00103e (patch) | |
tree | 42a486c46214aed9e87a09ec1e857b78d1caf03c /app/models/repository.rb | |
parent | 813e2728966709f60f0b85997eb73030fb6768ef (diff) |
Keep tmp/repositories during clean-up
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 4108c4ee96e..ed220ae2e8d 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -230,7 +230,8 @@ class Repository # Remove archives older than 2 hours def clean_old_archives - Gitlab::Popen.popen(%W(find #{Gitlab.config.gitlab.repository_downloads_path} -mmin +120 -delete)) + repository_downloads_path = Gitlab.config.gitlab.repository_downloads_path + Gitlab::Popen.popen(%W(find #{repository_downloads_path} -not -path #{repository_downloads_path} -mmin +120 -delete)) end def branches_sorted_by(value) |