1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-02 01:15:48 +00:00

Fix wiki raw commit diff/patch view (#16891) (#16892)

This commit is contained in:
6543 2021-08-31 08:13:08 +02:00 committed by GitHub
parent c54639b8ee
commit 67776372d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -873,7 +873,7 @@ func RegisterRoutes(m *web.Route) {
m.Get("/_pages", repo.WikiPages)
m.Get("/{page}/_revision", repo.WikiRevision)
m.Get("/commit/{sha:[a-f0-9]{7,40}}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.Diff)
m.Get("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}", repo.RawDiff)
m.Get("/commit/{sha:[a-f0-9]{7,40}}.{ext:patch|diff}", repo.RawDiff)
m.Group("", func() {
m.Combo("/_new").Get(repo.NewWiki).