summaryrefslogtreecommitdiff
path: root/app/controllers/graphs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/graphs_controller.rb')
-rw-r--r--app/controllers/graphs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/graphs_controller.rb b/app/controllers/graphs_controller.rb
index 5ae9c15c0f7..6c2ac5fcbf4 100644
--- a/app/controllers/graphs_controller.rb
+++ b/app/controllers/graphs_controller.rb
@@ -10,7 +10,7 @@ class GraphsController < ProjectResourceController
format.js do
@repo = @project.repository
@stats = Gitlab::Git::GitStats.new(@repo.raw, @repo.root_ref)
- @log = @stats.parsed_log.to_json
+ @log = @stats.parsed_log.to_json rescue []
end
end
end