mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 09:36:47 +10:00
Prevent page crash if failed to parse graphs data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user