Replace repo.namedBlob by git.TreeEntry. (#22898)

`namedBlob` turned out to be a poor imitation of a `TreeEntry`. Using
the latter directly shortens this code.

This partially undoes https://github.com/go-gitea/gitea/pull/23152/,
which I found a merge conflict with, and also expands the test it added
to cover the subtle README-in-a-subfolder case.
This commit is contained in:
Nick 2023-03-15 17:51:39 -04:00 committed by GitHub
parent 19cbd5c3d9
commit 6aef9e0a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 50 deletions

View file

@ -0,0 +1,4 @@
x<01><>QJÅ0EýÎ*f<>¤I@DÁ‡_ú!n`šL^mòhSîÞ ®ÀÏ÷^Î e]ç
½3wu<13>nˆzr,²Ö]ò.îýÀCçƒÎ$uåMrëÒèÑ
1zaÑI\’„„Îê 㘺<10>(>êT6xŸÃ¼­¹áéò‡Oײ|¯u9~l"Öi$cîÑ ªðkZ[ëÿêSö
S¹ÁÇùùåí¼C;Ûä¼òEv¸M!•#G˜30ìǘÊÒêy³]

View file

@ -0,0 +1 @@
4649299398e4d39a5c09eb4f534df6f1e1eb87cc