Automatically install hooks for scripts when repositories are loaded

Review Request #10046 — Created June 28, 2018 and submitted — Latest diff uploaded

Information

rb-gateway
master
b9a7eb7...

Reviewers

rb-gateway serve will now automatically install hook scripts for
repositories to trigger webhooks once the configuration has loaded.

A command to force re-install hook scripts has been added (rb-gateway reinstall-hooks).

Ran go fmt ./....
Ran make test.
Ran make integration-tests.

main.go
commands/reinstall_hooks.go
commands/serve.go
integration_tests/git_hook_test.go
integration_tests/hg_hook_test.go
repositories/git_hooks.go
repositories/git_hooks_test.go
repositories/hg.go
repositories/hg_test.go
repositories/repository.go
Loading...