Minor fixes for #2745

This commit is contained in:
Unknwon 2016-03-03 23:24:22 -05:00
parent 1cbc5b49e3
commit 260723e2cc
8 changed files with 921 additions and 708 deletions

View file

@ -241,10 +241,7 @@ func (repo *Repository) ComposeMetas() map[string]string {
return repo.ExternalMetas
}
func DeleteWiki(repo *Repository) {
repo.DeleteWiki()
}
// DeleteWiki removes the actual and local copy of repository wiki.
func (repo *Repository) DeleteWiki() {
wikiPaths := []string{repo.WikiPath(), repo.LocalWikiPath()}
for _, wikiPath := range wikiPaths {