Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct README link to render the README (#23152) #23264

Merged

Commits on Mar 3, 2023

  1. Use correct README link to render the README (go-gitea#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 go-gitea#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>
    4 people authored and GiteaBot committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    dbee9d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfb439a View commit details
    Browse the repository at this point in the history