diff options
Diffstat (limited to 'routers/repo/wiki.go')
-rw-r--r-- | routers/repo/wiki.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index 5e160518a0..6b3f2e3413 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -42,9 +42,9 @@ func renderWikiPage(ctx *middleware.Context, isViewPage bool) (*git.Repository, ctx.Handle(500, "OpenRepository", err) return nil, "" } - commit, err := wikiRepo.GetCommitOfBranch("master") + commit, err := wikiRepo.GetBranchCommit("master") if err != nil { - ctx.Handle(500, "GetCommitOfBranch", err) + ctx.Handle(500, "GetBranchCommit", err) return nil, "" } @@ -147,9 +147,9 @@ func WikiPages(ctx *middleware.Context) { ctx.Handle(500, "OpenRepository", err) return } - commit, err := wikiRepo.GetCommitOfBranch("master") + commit, err := wikiRepo.GetBranchCommit("master") if err != nil { - ctx.Handle(500, "GetCommitOfBranch", err) + ctx.Handle(500, "GetBranchCommit", err) return } |