Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-30 05:36:07 +01:00
forgejo/tests/gitea-repositories-meta
Giteabot 1322cd7a58
Use correct README link to render the README (#23152) (#23264)
Backport #23152

`renderReadmeFile` needs `readmeTreelink` as parameter but gets
`treeLink`.
The values of them look like as following:
`treeLink`:  `/{OwnerName}/{RepoName}/src/branch/{BranchName}`
`readmeTreelink`:
`/{OwnerName}/{RepoName}/src/branch/{BranchName}/{ReadmeFileName}`

`path.Dir` in

8540fc45b1/routers/web/repo/view.go (L316)
should convert `readmeTreelink` into
`/{OwnerName}/{RepoName}/src/branch/{BranchName}` instead of the current
`/{OwnerName}/{RepoName}/src/branch`.

Fixes #23151

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2023-03-04 00:38:11 -05:00
..
limited_org Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
migration/lfs-test.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
org26 Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
privated_org Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user2 Use correct README link to render the README (#23152) (#23264) 2023-03-04 00:38:11 -05:00
user3/repo3.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user5/repo4.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user12/repo10.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user13/repo11.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user27 Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
user30 Add a simple test for external renderer (#20033) 2022-12-12 20:45:21 +08:00