summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/serv.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 925cb2a672..d9d32217c8 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -296,6 +296,12 @@ func runServ(c *cli.Context) error {
gitcmd = exec.Command(verb, repoPath)
}
+ if isWiki {
+ if err = repo.InitWiki(); err != nil {
+ fail("Internal error", "Failed to init wiki repo: %v", err)
+ }
+ }
+
os.Setenv(models.ProtectedBranchRepoID, fmt.Sprintf("%d", repo.ID))
gitcmd.Dir = setting.RepoRootPath