all repos — elgit @ fed19ae329323cca0f7b49624486966fbce8096b

fork of legit: web frontend for git, written in go

use gitweb/gitolite directory layout (including subdirs)

Alan Pearce
commit

fed19ae329323cca0f7b49624486966fbce8096b

parent

9c336ff148d48d09a4f4866798511cdcce50202a

1 file changed, 2 insertions(+), 0 deletions(-)

changed files
M git/tree.gogit/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)