diff --git a/lib/rjgit_adapter/git_layer_rjgit.rb b/lib/rjgit_adapter/git_layer_rjgit.rb index 810dd1b..57e2f00 100644 --- a/lib/rjgit_adapter/git_layer_rjgit.rb +++ b/lib/rjgit_adapter/git_layer_rjgit.rb @@ -434,8 +434,8 @@ def log(ref = Gollum::Git.default_ref_for_repo(@repo), path = nil, options = {}) git.log(Gollum::Git.canonicalize(ref), path, options) end - def lstree(sha, options={}) - entries = RJGit::Porcelain.ls_tree(@repo.jrepo, nil, @repo.find(sha, :tree), {:recursive => options[:recursive]}) + def lstree(sha, path=nil, options={}) + entries = RJGit::Porcelain.ls_tree(@repo.jrepo, path, @repo.find(sha, :tree), {:recursive => options[:recursive]}) entries.map! do |entry| entry[:mode] = entry[:mode] entry[:sha] = entry[:id]