diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-06-14 14:01:55 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-06-19 11:37:51 +0300 |
commit | c24e39ab88af8fa3087efa0c7c6335e2941d8641 (patch) | |
tree | e5239419080085aae9dcbdc96c308a4d28167088 /app/controllers/projects | |
parent | 0716e19271ec8234b06164bf701a33c16bd221de (diff) |
Counting commits is done by Gitaly
Closes https://gitlab.com/gitlab-org/gitaly/issues/382
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/branches_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/projects/branches_controller.rb b/app/controllers/projects/branches_controller.rb index b7b36f770f5..cd7250b10fc 100644 --- a/app/controllers/projects/branches_controller.rb +++ b/app/controllers/projects/branches_controller.rb @@ -31,7 +31,10 @@ class Projects::BranchesController < Projects::ApplicationController end end - render + # https://gitlab.com/gitlab-org/gitlab-ce/issues/48097 + Gitlab::GitalyClient.allow_n_plus_1_calls do + render + end end format.json do branches = BranchesFinder.new(@repository, params).execute |