0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-17 03:42:40 -05:00
forgejo/tests
Giteabot 1322cd7a58
Use correct README link to render the README () ()
Backport 

`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 

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
..
e2e Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fuzz Move fuzz tests into tests/fuzz () 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files () 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Use correct README link to render the README () () 2023-03-04 00:38:11 -05:00
integration Use correct README link to render the README () () 2023-03-04 00:38:11 -05:00
mssql.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
mysql.ini.tmpl Add some comments for recent code () 2023-02-02 11:39:38 -06:00
mysql8.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
pgsql.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
sqlite.ini.tmpl Add a simple test for external renderer () 2022-12-12 20:45:21 +08:00
test_utils.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
testlogger.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00