tree.each_tree do |subdir|
        filepath = [path, subdir[:name]].select(&:present?).compact.join('/')
        contents << GitRepository::Files::GitFile.new(self, rugged_commit, filepath)