lib/gitlab_git/tree.rb in gitlab_git-3.0.0.beta1 vs lib/gitlab_git/tree.rb in gitlab_git-3.0.0.pre
- old
+ new
@@ -6,10 +6,10 @@
class << self
def where(repository, sha, path = '/')
commit = Commit.find(repository, sha)
grit_tree = commit.tree / path
- if grit_tree && grit_tree.respond_to?(:contents)
+ if grit_tree
grit_tree.contents.map do |entry|
type = entry.class.to_s.split("::").last.downcase.to_sym
Tree.new(
id: entry.id,