diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-28 16:09:25 +0400 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-31 14:19:37 +0400 |
commit | 200eeea2587d36a90f8308425887e953c48eecbc (patch) | |
tree | 49ca45637a76e11ec46d5965ca0b24b1305112cb /lib/api/repositories.rb | |
parent | 0488e34ba723b9a55bd6e35aafc0cf089b0b49fd (diff) |
Make the repository downloads path configurable
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r-- | lib/api/repositories.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb index ba53bf9baa4..53482c3b7f2 100644 --- a/lib/api/repositories.rb +++ b/lib/api/repositories.rb @@ -161,7 +161,7 @@ module API repo = user_project.repository ref = params[:sha] format = params[:format] - storage_path = Rails.root.join("tmp", "repositories") + storage_path = Gitlab.config.gitlab.repository_downloads_path file_path = repo.archive_repo(ref, storage_path, format) if file_path && File.exists?(file_path) |