1
0
Fork 0
forked from NYANDEV/forgejo
forgejo/models
yp05327 699f20234b
Use correct README link to render the README ()
`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: 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
..
actions Avoid too long names for actions () 2023-02-28 18:20:36 +08:00
activities Add pagination for dashboard and user activity feeds () 2023-02-24 16:15:10 -05:00
admin Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
asymkey Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
auth Use minio/sha256-simd for accelerated SHA256 () 2023-02-22 14:21:46 -05:00
avatars Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
db Fix db.Find bug () 2023-02-24 21:17:09 +08:00
dbfs Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
fixtures Use correct README link to render the README () 2023-03-03 18:01:33 +08:00
git Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
issues Add loading yaml label template files () 2023-03-02 01:44:23 +02:00
migrations Require approval to run actions for fork pull request () 2023-02-24 15:58:49 +08:00
organization Rename GetUnits to LoadUnits () 2023-02-19 16:31:39 +08:00
packages Use link in UI which returned a relative url but not html_url which contains an absolute url () 2023-02-06 12:09:18 -06:00
perm Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
project improve FindProjects () 2023-02-24 13:18:52 +08:00
pull refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
secret Secrets storage with SecretKey encrypted () 2022-12-20 17:07:13 +08:00
system Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
unit Repositories: by default disable all units except code and pulls on forks () 2023-02-04 14:48:38 +08:00
unittest Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
user Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
webhook Support system hook API () 2023-01-28 19:12:10 +01:00
error.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_generation.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fixture_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
main_test.go Refactor the setting to make unit test easier () 2023-02-20 00:12:01 +08:00
migrate.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
migrate_test.go Check primary keys for all tables and drop ForeignReference () 2022-12-23 19:35:43 +08:00
org.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
org_team.go Supports wildcard protected branch () 2023-01-16 16:00:22 +08:00
org_team_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
org_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo.go Avoid warning for system setting when start up () 2023-02-24 18:23:13 +08:00
repo_collaboration.go refactor some functions to support ctx as first parameter () 2022-12-03 10:48:26 +08:00
repo_collaboration_test.go Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
repo_test.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
repo_transfer.go Always reuse transaction () 2023-01-08 09:34:58 +08:00
repo_transfer_test.go Rename almost all Ctx functions () 2022-12-10 10:46:31 +08:00