]> source.dussan.org Git - gitea.git/commit
Fix 500 on first wiki page (#16586)
authorzeripath <art27@cantab.net>
Sun, 1 Aug 2021 17:04:32 +0000 (18:04 +0100)
committerGitHub <noreply@github.com>
Sun, 1 Aug 2021 17:04:32 +0000 (19:04 +0200)
commite51c73ae5c03c83256d48cdcd0ca9cbdbf7a5222
tree1e6f6cfc023da95a1c7fb28cae8ebf785ec7f352
parentd686d7b05231ee43d6901317208c1dd851dacfa9
Fix 500 on first wiki page (#16586)

* Fix 500 on first wiki page

There is a mistake in #16319 and #16487 which means that the first time
a wiki page is created a 500 is reported because the `master` branch is
not in existence in that wiki yet.

This PR simply checks for this error and returns not found.

Fix #16584

Signed-off-by: Andrew Thornton <art27@cantab.net>
services/wiki/wiki.go
services/wiki/wiki_test.go