1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

#3233 code cleanup and minor issue fix

This commit is contained in:
Unknwon
2016-08-11 10:53:51 -07:00
parent 0885784f13
commit 5077408d78
11 changed files with 55 additions and 81 deletions

View File

@@ -105,6 +105,8 @@ func (repo *Repository) InitWiki() error {
if err := git.InitRepository(repo.WikiPath(), true); err != nil {
return fmt.Errorf("InitRepository: %v", err)
} else if err = createUpdateHook(repo.WikiPath()); err != nil {
return fmt.Errorf("createUpdateHook: %v", err)
}
return nil
}