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
This commit is contained in:
Philippe Kueck 2017-03-23 02:12:51 +01:00 committed by Lunny Xiao
parent d330a23ce1
commit fe94032f74
3 changed files with 96 additions and 6 deletions

View file

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