summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-04-17 11:48:54 +0200
committertv <tv@krebsco.de>2016-04-17 11:48:54 +0200
commit066381dff01f51dd24a829d6cf9de9f6465534f3 (patch)
treec240daf593cf52b9affdf9e2ef30ae42622e5a90
parent41ff57c6d6a7ed4d8562169c0d3fd9d6adb949e6 (diff)
tv.git: irc-announce only at cd
-rw-r--r--tv/2configs/git.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tv/2configs/git.nix b/tv/2configs/git.nix
index 4c1fba59a..2e5fc301b 100644
--- a/tv/2configs/git.nix
+++ b/tv/2configs/git.nix
@@ -71,13 +71,13 @@ let
make-public-repo = name: { desc ? null, section ? null, ... }: {
inherit name desc section;
public = true;
- hooks = {
+ hooks = optionalAttrs (config.krebs.build.host.name == "cd") {
post-receive = pkgs.git-hooks.irc-announce {
# TODO make nick = config.krebs.build.host.name the default
nick = config.krebs.build.host.name;
channel = "#retiolum";
server = "cd.retiolum";
- verbose = config.krebs.build.host.name == "cd";
+ verbose = true;
};
};
};