Commit 6c6cdd23ff8241fd2f8c52143f102c9b914f5233
1 parent
1bde9277
Exists in
spb-stable
and in
2 other branches
Prevent timeout for Commits#stats page for huge repos
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/projects/repositories/stats.html.haml
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | %hr | 5 | %hr |
6 | %p | 6 | %p |
7 | %b Total commits: | 7 | %b Total commits: |
8 | - %span= @stats.commits_count | 8 | + %span= @repository.commit_count |
9 | %p | 9 | %p |
10 | %b Total files in #{@repository.root_ref}: | 10 | %b Total files in #{@repository.root_ref}: |
11 | %span= @stats.files_count | 11 | %span= @stats.files_count |