From dcdf12fd0bcbbc657aaae3962475747d9f3228bd Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 14 Jun 2015 23:55:41 +0200 Subject: modules/tv/git: enable repo-specific hooks --- modules/cd/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/cd') diff --git a/modules/cd/default.nix b/modules/cd/default.nix index 9bb4d0f2a..1d621e03d 100644 --- a/modules/cd/default.nix +++ b/modules/cd/default.nix @@ -62,7 +62,18 @@ # TODO warn about stale repodirs repos = addNames { testing = { - # TODO hooks = { post-receive = ... + hooks = { + update = '' + #! /bin/sh + set -euf + echo update hook: $* >&2 + ''; + post-update = '' + #! /bin/sh + set -euf + echo post-update hook: $* >&2 + ''; + }; }; }; -- cgit v1.2.3