Skip to content

Commit

Permalink
Fix wiki raw commit diff/patch view (#16891) (#16893)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Aug 31, 2021
1 parent 95d2744 commit 2fc5b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/routes/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,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 2fc5b08

Please sign in to comment.