diff options
author | yp05327 | 2023-03-03 19:01:33 +0900 |
---|---|---|
committer | GitHub | 2023-03-03 18:01:33 +0800 |
commit | 699f20234b9f7cdbbeeee3be004470c598fa1147 (patch) | |
tree | ab762f9225be16ced346adfe7bccf423bf439f75 /models | |
parent | 0bfcbcc5e769bd258e4f530e0f007f5465f42de5 (diff) |
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 'models')
-rw-r--r-- | models/fixtures/repository.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index 58f9b919a..dd8facb7a 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -25,7 +25,7 @@ fork_id: 0 is_template: false template_id: 0 - size: 6708 + size: 7028 is_fsck_enabled: true close_issues_via_commit_in_any_branch: false |