lib/gitlab_git/tree.rb in gitlab_git-6.1.0 vs lib/gitlab_git/tree.rb in gitlab_git-6.2.0

- old
+ new

@@ -28,11 +28,11 @@ tree.map do |entry| Tree.new( id: entry[:oid], root_id: root_tree.oid, name: entry[:name], - type: entry[:type] || :submodule, + type: entry[:type], mode: entry[:filemode], path: path ? File.join(path, entry[:name]) : entry[:name], commit_id: sha, ) end @@ -81,10 +81,10 @@ def file? type == :blob end def submodule? - type == :submodule + type == :commit end def readme? name =~ /^readme/i end