Update
suggest changeThis hook is called after pre-receive, and it works the same way. It’s called before anything is actually updated, but is called separately for each ref that was pushed rather than all of the refs at once.
This hook accepts the following 3 arguments:
- name of the ref being updated,
- old object name stored in the ref, and
- new object name stored in the ref.
This is the same information passed to pre-receive, but update runs once per ref. Exit non-zero to reject that ref and still allow the others.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents