diff options
| author | tv <tv@krebsco.de> | 2026-11-19 21:27:30 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 01:23:59 +0100 |
| commit | 58ee2e3a72d46847ee63baf768864a14ce0716fc (patch) | |
| tree | e93cff817a887a090da3c2375cab56b856d2462b /modules/git.nix | |
| parent | 80320edd83d460a8e576985adefe309d0a765cfe (diff) | |
krebs.git: run post-receive hooks only once
makeHooks links a repo's post-receive hook into the hooks directory, where
git runs it after updating the refs. The generated pre-receive no longer
also runs it inline, where it ran before the refs were updated and with
its stdin already consumed.
Diffstat (limited to 'modules/git.nix')
| -rw-r--r-- | modules/git.nix | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/git.nix b/modules/git.nix index 5237a4d..45fe54a 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -724,10 +724,6 @@ let fi systemd-cat -p info -t git echo "$accept_string" - - ${optionalString (hasAttr "post-receive" repo.hooks) '' - # custom post-receive hook - ${repo.hooks.post-receive}''} ''; }; |
