use gitweb/gitolite directory layout (including subdirs)
1 file changed, 2 insertions(+), 0 deletions(-)
changed files
M git/tree.go → git/tree.go
@@ -2,11 +2,13 @@ package git import ( "fmt" + "strings" "github.com/go-git/go-git/v5/plumbing/object" ) func (g *GitRepo) FileTree(path string) ([]NiceTree, error) { + path = strings.TrimSuffix(path, "/") c, err := g.r.CommitObject(g.h) if err != nil { return nil, fmt.Errorf("commit object: %w", err)