Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attach the parent tree when creating Tree()
!fixup go-gitea#22177 The only place this function is used so far is in findReadmeFileInEntries(), so the only visible effect of this oversight was in an obscure corner: if the README was in a subfolder and was a symlink that pointed up, as in .github/README.md -> ../docs/old/setup.md, the README would fail to render when because FollowLinks() hit the nil ptree.
- Loading branch information