diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 13:12:00 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-05 13:12:00 +0200 |
commit | d2d2df0738f3cd8311963c34d90ebc8ce4081aa6 (patch) | |
tree | d3f342088131b73b62eb0e5cf494693fd80e5557 /app/controllers/ci | |
parent | 361dc3641dd28c4ecefbda94f7a8dad299c349aa (diff) | |
download | gitlab-ce-d2d2df0738f3cd8311963c34d90ebc8ce4081aa6.tar.gz |
Fix next round of tests
Diffstat (limited to 'app/controllers/ci')
-rw-r--r-- | app/controllers/ci/commits_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/ci/commits_controller.rb b/app/controllers/ci/commits_controller.rb index acf9189572c..887e92f84cf 100644 --- a/app/controllers/ci/commits_controller.rb +++ b/app/controllers/ci/commits_controller.rb @@ -13,7 +13,7 @@ module Ci end def status - commit = Ci::Project.find(params[:project_id]).commits.find_by_sha!(params[:id], params[:ref_id]) + commit = Ci::Project.find(params[:project_id]).commits.find_by_sha!(params[:id]) render json: commit.to_json(only: [:id, :sha], methods: [:status, :coverage]) rescue ActiveRecord::RecordNotFound render json: { status: "not_found" } |