Skip to content

Docs: add note about pre-push hooks not being triggered on ref deletions - #893

Open
whophil wants to merge 1 commit into
pre-commit:mainfrom
whophil:note-pre-push-behavior
Open

whophil wants to merge 1 commit into
pre-commit:mainfrom
whophil:note-pre-push-behavior

Conversation

@whophil

@whophil whophil commented Nov 3, 2023

Copy link
Copy Markdown

Documents behavior described in pre-commit/pre-commit#3050

Comment thread sections/advanced.md
Comment on lines +185 to +186
note: `pre-push` hooks are not triggered for ref deletions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a bit more nuance to this than just that -- the variables below imply this is already the case since there must be a from-ref and a to-ref