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
path: root/app
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-29 19:02:45 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-29 19:02:45 +0400
commit51f8352dcad8108a5af9a65c85e99a3e5a00103e (patch)
tree42a486c46214aed9e87a09ec1e857b78d1caf03c /app
parent813e2728966709f60f0b85997eb73030fb6768ef (diff)
Keep tmp/repositories during clean-up
Diffstat (limited to 'app')
-rw-r--r--app/models/repository.rb3
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)