Skip to content

Commit

Permalink
Do not remove Gitlab.config.gitlab.repository_downloads_path
Browse files Browse the repository at this point in the history
  • Loading branch information
zzet committed Sep 5, 2014
1 parent ca0d940 commit f4a5a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def last_commit_for_path(sha, path)

# Remove archives older than 2 hours
def clean_old_archives
Gitlab::Popen.popen(%W(find #{Gitlab.config.gitlab.repository_downloads_path} -mmin +120 -delete))
Gitlab::Popen.popen(%W(find #{Gitlab.config.gitlab.repository_downloads_path}/* -mmin +120 -delete))
end

def branches_sorted_by(value)
Expand Down

0 comments on commit f4a5a9c

Please sign in to comment.