Browse Source

migration: minor code fix (#1623)

pull/4129/head
Unknwon 8 years ago
parent
commit
fd5881fb64
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      models/migrations/v15.go

1
models/migrations/v15.go

@ -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)

Loading…
Cancel
Save