Fix gogit ListEntriesRecursiveWithSize (#35862)

It needs to use full git path. Fix #35852.
This commit is contained in:
wxiaoguang
2025-11-06 01:19:47 +08:00
committed by GitHub
parent 470b21056a
commit f84bf259ad
2 changed files with 7 additions and 1 deletions

View File

@@ -19,12 +19,17 @@ type TreeEntry struct {
gogitTreeEntry *object.TreeEntry
ptree *Tree
fullName string
size int64
sized bool
}
// Name returns the name of the entry
func (te *TreeEntry) Name() string {
if te.fullName != "" {
return te.fullName
}
return te.gogitTreeEntry.Name
}