Behavior change in ref-update hook

33 views
Skip to first unread message

devops

unread,
Aug 3, 2017, 3:58:41 AM8/3/17
to Repo and Gerrit Discussion

Instead of being invoked on every commit received, the ref-update hook is now invoked before the ref update operation is finalized. The previous behavior of the ref-update hook is moved into a new hook named commit-received.

Sites using the ref-update hook should rename the hook file to commit-received.


Does that mean ref-update hook doesn't exist anymore? 

David Pursehouse

unread,
Aug 3, 2017, 4:11:38 AM8/3/17
to devops, Repo and Gerrit Discussion
The ref-update hook still exists, but behaves differently than in previous versions (as described above).  If the previous behavior is needed, you can simply rename your existing "ref-update" hook to "commit-received"

 
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

devops

unread,
Aug 3, 2017, 6:00:52 AM8/3/17
to Repo and Gerrit Discussion, sakshiso...@gmail.com
Thanks for the reply , also there are no changed in "ref-updated" hooks right ?
Reply all
Reply to author
Forward
0 new messages