Skip to content

Commit

Permalink
Fix wiki raw commit diff/patch view (#16891) (#16892)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Aug 31, 2021
1 parent c54639b commit 6777637
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 6777637

Please sign in to comment.