lib/gitlab_git/tree.rb in gitlab_git-1.4.1 vs lib/gitlab_git/tree.rb in gitlab_git-2.0.0.beta

- old
+ new

@@ -7,10 +7,10 @@ @repository, @sha, @ref, @path = repository, sha, ref, path @path = nil if !@path || @path == '' # Load tree from repository - @commit = @repository.commit(@sha) + @commit = Gitlab::Git::Commit.find(@repository, @sha) @raw_tree = @repository.tree(@commit, @path) end def exists? raw_tree