Skip to content

Commit

Permalink
Fix wiki raw commit diff/patch view (go-gitea#16891)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Aug 30, 2021
1 parent 49a71a6 commit fe68e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit fe68e32

Please sign in to comment.