Hi David -
Aside from my changes to get gohg working, the only change I have currently made was two comments.
The initial invocation of "rb-gateway serve" creates some default hooks in the repository/hooks directory. This is a problem for us because we're using gitolite3 to manage hooks, and it breaks our existing hooks configuration - and we have a lot of repos.
All I did was comment two lines in commands/serve.go:
diff --git a/commands/serve.go b/commands/serve.go
index 613a332..3e4d828 100644
--- a/commands/serve.go
+++ b/commands/serve.go
@@ -16,7 +16,7 @@ func Serve(configPath string) {
select {
case cfg = <-configWatcher.NewConfig:
- installHooks(cfg, configPath, false)
+ // installHooks(cfg, configPath, false)
break
case <-configWatcher.Errors:
@@ -98,7 +98,7 @@ func Serve(configPath string) {
// If we have any new repositories, install hooks for them.
// We do not need to force install because configPath has not changed.
- installHooks(cfg, configPath, false)
+ //installHooks(cfg, configPath, false)
}
}
}
Perhaps not very useful to most, and kind of heavy-handed, but if you don't want the webhooks, this seems to work.
A feature request for hooks might look like an optional enablement of hooks, or if a hook install argument isn't passed, to simply assume the git repo admin is managing the hooks.
In any case, I'm up and running now. Thanks very much for the responses!
-Ed