diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-29 09:15:18 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-29 09:15:18 +0300 |
commit | 348eb12598afb7f61b438da5e2240b709b17402f (patch) | |
tree | bf076ae13f68c835b6f1ccb7cd516018c0800b9e /app | |
parent | ad6bcb1396d764b2f3ce1af63d1d0412d1120d14 (diff) | |
download | gitlab-ce-348eb12598afb7f61b438da5e2240b709b17402f.tar.gz |
Provide a path to repo archive. gitlab_git up to 1.0.5
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/repositories_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 6fba2518306..a7d393af82b 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -27,7 +27,9 @@ class RepositoriesController < ProjectResourceController end - file_path = @repository.archive_repo(params[:ref]) + storage_path = Rails.root.join("tmp", "repositories") + + file_path = @repository.archive_repo(params[:ref], storage_path) if file_path # Send file to user |