diff options
author | lassulus <lassulus@lassul.us> | 2017-08-21 12:40:29 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-08-21 12:40:29 +0200 |
commit | bbc966fc7bcee828af7c0023ca3c6e63c625174f (patch) | |
tree | 1a5a6f4c97b52ca8bd825282bce04e0fa8ff53c0 /lass/2configs | |
parent | 51cb5bb1f10aaf68499f6fbe53923959d35f039b (diff) |
l git: allow hooks to be set individually
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/git.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lass/2configs/git.nix b/lass/2configs/git.nix index d3f5d1f39..eb606037e 100644 --- a/lass/2configs/git.nix +++ b/lass/2configs/git.nix @@ -80,7 +80,7 @@ let public = true; }; - make-restricted-repo = name: { collaborators ? [], announce ? false, ... }: { + make-restricted-repo = name: { collaborators ? [], announce ? false, hooks ? {}, ... }: { inherit collaborators name; public = false; hooks = optionalAttrs announce { @@ -93,7 +93,7 @@ let # TODO define branches in some kind of option per repo branches = [ "master" "staging*" ]; }; - }; + } // hooks; }; make-rules = |