diff --git a/lib/modules/models/git.rb b/lib/modules/models/git.rb index c60ca5869..ee42aca31 100644 --- a/lib/modules/models/git.rb +++ b/lib/modules/models/git.rb @@ -94,6 +94,7 @@ module Modules end def tree_info(tree, treeish = nil, path = nil) + return [] unless tree grouped = tree.contents.sort_by{|c| c.name.downcase}.group_by(&:class) [ grouped[Grit::Tree],