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:
parent
19cbd5c3d9
commit
6aef9e0a2f
6 changed files with 74 additions and 50 deletions
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
x²▐QJе0EЩн*f>╕²╓I@Dа┤_З!n` L^▀mРhSНч ╝юоВ^н
e]Г
|
||||
╫3wu│n┬zr▒,╡ж]Р.6т▀НЩюCГ┐н$uЕMrКрХя
|
||||
1zaяI\▓└└нЙ Ц≤╨█(>ЙT6x÷ц╪╜:и╧АИР┤Oв╡|╞u9~l"жi$cНя ╙ПkZ[КЪЙSЖ
|
||||
S╧агЫЫЕМ╪C;шД╪РEv╦M▓!∙#G≤30Лг≤йрЙyЁ]
|
|
@ -0,0 +1 @@
|
|||
4649299398e4d39a5c09eb4f534df6f1e1eb87cc
|
Loading…
Add table
Add a link
Reference in a new issue