summaryrefslogtreecommitdiffstats
path: root/tests/integration/setting_test.go
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-03-03 19:01:33 +0900
committerGitHub <noreply@github.com>2023-03-03 18:01:33 +0800
commit699f20234b9f7cdbbeeee3be004470c598fa1147 (patch)
treeab762f9225be16ced346adfe7bccf423bf439f75 /tests/integration/setting_test.go
parent0bfcbcc5e769bd258e4f530e0f007f5465f42de5 (diff)
downloadgitea-699f20234b9f7cdbbeeee3be004470c598fa1147.tar.gz
gitea-699f20234b9f7cdbbeeee3be004470c598fa1147.zip
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 https://github.com/go-gitea/gitea/blob/8540fc45b11eff9a73753ca139f8ea5c38509bf5/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>
Diffstat (limited to 'tests/integration/setting_test.go')
0 files changed, 0 insertions, 0 deletions