From 2b85105b557389407a5b9391fde82dcda2a4d005 Mon Sep 17 00:00:00 2001 From: Phil Chiu Date: Fri, 3 Nov 2023 11:50:43 -0600 Subject: [PATCH] Add note about pre-push hooks not being triggered on ref deletions --- sections/advanced.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sections/advanced.md b/sections/advanced.md index 65d30ac5..5226e376 100644 --- a/sections/advanced.md +++ b/sections/advanced.md @@ -182,6 +182,8 @@ Note that you need to be using at least git 2.24 for this hook. `pre-push` is triggered on `git push`. +note: `pre-push` hooks are not triggered for ref deletions. + environment variables: - `PRE_COMMIT_FROM_REF`: the revision that is being pushed to. - `PRE_COMMIT_TO_REF`: the local revision that is being pushed to the remote.