mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
update go git from v4.10.0 to v4.11.0 (#7096)
This commit is contained in:
2
vendor/gopkg.in/src-d/go-git.v4/plumbing/object/tree.go
generated
vendored
2
vendor/gopkg.in/src-d/go-git.v4/plumbing/object/tree.go
generated
vendored
@@ -135,7 +135,7 @@ func (t *Tree) FindEntry(path string) (*TreeEntry, error) {
|
||||
pathCurrent := ""
|
||||
|
||||
// search for the longest path in the tree path cache
|
||||
for i := len(pathParts); i > 1; i-- {
|
||||
for i := len(pathParts) - 1; i > 1; i-- {
|
||||
path := filepath.Join(pathParts[:i]...)
|
||||
|
||||
tree, ok := t.t[path]
|
||||
|
Reference in New Issue
Block a user