aboutsummaryrefslogtreecommitdiff
path: root/tools/gerrit-hook/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gerrit-hook/main.go')
-rw-r--r--tools/gerrit-hook/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gerrit-hook/main.go b/tools/gerrit-hook/main.go
index f8ed687..aae73ba 100644
--- a/tools/gerrit-hook/main.go
+++ b/tools/gerrit-hook/main.go
@@ -57,6 +57,8 @@ func main() {
os.Exit(1)
}
gerritHookMain(cfg, log, trigger)
+ } else if cmd == "post-command" {
+ postCommand(cfg)
} else {
log.Info(fmt.Sprintf("`%s' is not a supported command", cmd))
os.Exit(1)