From da84be8c451308bbad0a70592bdcb0abd975f060 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 7 Aug 2024 19:01:27 -0600 Subject: sys/ns: implement automatic zone serial updates with a pre-commit hook --- hooks/pre-commit | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 hooks/pre-commit (limited to 'hooks/pre-commit') diff --git a/hooks/pre-commit b/hooks/pre-commit new file mode 100755 index 0000000..93e9b9a --- /dev/null +++ b/hooks/pre-commit @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e +exec >&2 + +if git diff-index --cached HEAD -- | grep -q $'\tsys/ns/'; then + exec hooks/lib/update-zone-serials +fi -- cgit v1.2.3