diff options
author | Philippe Kueck <philfry@users.noreply.github.com> | 2017-03-23 02:12:51 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-23 09:12:51 +0800 |
commit | fe94032f74298569512f6ece2fbe4f7ab9a24e46 (patch) | |
tree | 59a7f398787d26b7b5c62cc2207f049cffa5a418 /models/migrations/migrations.go | |
parent | d330a23ce1d20d684b4ee6905cb295fb5b39e398 (diff) | |
download | gitea-fe94032f74298569512f6ece2fbe4f7ab9a24e46.tar.gz gitea-fe94032f74298569512f6ece2fbe4f7ab9a24e46.zip |
rewrite pre-commit, post-commit and options hooks (fixes #1250) (#1257)
* issue #1250, replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script
* issue #1250, make script posix compilant
* v23, add migration script to update {pre,post}-receive and update hooks
* migration: use a more common name and rename v23 to v26 to avoid conflicts
* gofmt'ed and added copyright header
* fix SyncRepositoryHooks to also sync wiki repos
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r-- | models/migrations/migrations.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index f651a9b787..07a56e879b 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -100,6 +100,8 @@ var migrations = []Migration{ NewMigration("change the key_id and primary_key_id type", changeGPGKeysColumns), // v25 -> v26 NewMigration("add show field in user openid table", addUserOpenIDShow), + // v26 -> v27 + NewMigration("generate and migrate repo and wiki Git hooks", generateAndMigrateGitHookChains), } // Migrate database to current version |