This repository has been archived on 2023-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
gitea/services/wiki
zeripath a17edf446f
Fix 500 on first wiki page (#16586) (#16598)
Backport #16586

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>
2021-08-03 23:46:08 +01:00
..
wiki.go Fix 500 on first wiki page (#16586) (#16598) 2021-08-03 23:46:08 +01:00
wiki_test.go Fix 500 on first wiki page (#16586) (#16598) 2021-08-03 23:46:08 +01:00