From 939bcd57b9446b9dce78d7a8c3b15fa13e6320f7 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sat, 27 Jun 2020 22:00:15 +0200 Subject: repo: more tests --- repository/git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repository/git.go') diff --git a/repository/git.go b/repository/git.go index e4cb57e6..83037307 100644 --- a/repository/git.go +++ b/repository/git.go @@ -337,8 +337,8 @@ func (repo *GitRepo) ListCommits(ref string) ([]git.Hash, error) { } -// ListEntries will return the list of entries in a Git tree -func (repo *GitRepo) ListEntries(hash git.Hash) ([]TreeEntry, error) { +// ReadTree will return the list of entries in a Git tree +func (repo *GitRepo) ReadTree(hash git.Hash) ([]TreeEntry, error) { stdout, err := repo.runGitCommand("ls-tree", string(hash)) if err != nil { -- cgit