mirror of
https://github.com/gogs/gogs.git
synced 2026-03-22 20:01:47 +01:00
migration: minor code fix (#1623)
This commit is contained in:
@@ -88,6 +88,7 @@ func generateAndMigrateGitHooks(x *xorm.Engine) (err error) {
|
||||
return fmt.Errorf("write hook file '%s': %v", oldHookPath, err)
|
||||
}
|
||||
|
||||
os.MkdirAll(wikiHookDir, os.ModePerm)
|
||||
wikiHookPath := filepath.Join(wikiHookDir, hookName)
|
||||
if err = ioutil.WriteFile(wikiHookPath, []byte(hookTpls[i]), os.ModePerm); err != nil {
|
||||
return fmt.Errorf("write wiki hook file '%s': %v", wikiHookPath, err)
|
||||
|
||||
Reference in New Issue
Block a user