summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-29 09:15:18 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-29 09:15:18 +0300
commit348eb12598afb7f61b438da5e2240b709b17402f (patch)
treebf076ae13f68c835b6f1ccb7cd516018c0800b9e /app
parentad6bcb1396d764b2f3ce1af63d1d0412d1120d14 (diff)
downloadgitlab-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.rb4
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