diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-06-06 14:16:30 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-06-06 14:16:30 +0300 |
commit | 8c3ba8d6c9021f250fb1597f6b597d817af46b38 (patch) | |
tree | 0282f6ce75ad214634839ab04cc1f111af06cd35 /app/controllers/projects/repositories_controller.rb | |
parent | 3cb69f0c0b0049426e6abad0914812a9eef87b04 (diff) |
Add workhorse controller and API helpers
Diffstat (limited to 'app/controllers/projects/repositories_controller.rb')
-rw-r--r-- | app/controllers/projects/repositories_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/repositories_controller.rb b/app/controllers/projects/repositories_controller.rb index bb7a6b6a5ab..d5af0341d18 100644 --- a/app/controllers/projects/repositories_controller.rb +++ b/app/controllers/projects/repositories_controller.rb @@ -11,8 +11,7 @@ class Projects::RepositoriesController < Projects::ApplicationController end def archive - headers.store(*Gitlab::Workhorse.send_git_archive(@project, params[:ref], params[:format])) - head :ok + send_git_archive @repository, ref: params[:ref], format: params[:format] rescue => ex logger.error("#{self.class.name}: #{ex}") return git_not_found! |