diff options
author | Lauris BH <lauris@nix.lv> | 2017-07-02 16:50:57 +0300 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-02 21:50:57 +0800 |
commit | f189ccd2d60231485f045ce70a523fe12e401912 (patch) | |
tree | 6aff9591c4b486a155e2a8d8dc8bfe9cc143ecbb /models/migrations/v36.go | |
parent | f99489d5c522663cfc14b9b65539966844f3ee6b (diff) | |
download | gitea-f189ccd2d60231485f045ce70a523fe12e401912.tar.gz gitea-f189ccd2d60231485f045ce70a523fe12e401912.zip |
Fix git hooks update to receive required arguments. Fixes #2090 (#2095)
* Changed migration calling so that migrations can use models package
Diffstat (limited to 'models/migrations/v36.go')
-rw-r--r-- | models/migrations/v36.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/models/migrations/v36.go b/models/migrations/v36.go new file mode 100644 index 0000000000..06f76a26d6 --- /dev/null +++ b/models/migrations/v36.go @@ -0,0 +1,15 @@ +// Copyright 2017 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migrations + +import ( + "code.gitea.io/gitea/models" + + "github.com/go-xorm/xorm" +) + +func regenerateGitHooks36(x *xorm.Engine) (err error) { + return models.SyncRepositoryHooks() +} |