0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 04:24:14 +01:00
gitea/tests
yp05327 699f20234b
Use correct README link to render the README (#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: Jason Song <i@wolfogre.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
2023-03-03 18:01:33 +08:00
..
e2e
fuzz Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Use correct README link to render the README (#23152) 2023-03-03 18:01:33 +08:00
integration Use correct README link to render the README (#23152) 2023-03-03 18:01:33 +08:00
mssql.ini.tmpl
mysql.ini.tmpl Add some comments for recent code (#22725) 2023-02-02 11:39:38 -06:00
mysql8.ini.tmpl
pgsql.ini.tmpl
sqlite.ini.tmpl
test_utils.go Remove all package data after tests (#22984) 2023-02-23 22:11:56 +08:00
testlogger.go