--
--
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 a topic in the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/repo-discuss/ix72NtTcZsU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alright, sorry for the spam, but this hook isn't even called when a review is merged. How hard would that be to change?
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.
I don't know who would be most interested in this review, but here's a possible solution:
On Wednesday, February 15, 2017 at 12:21:14 PM UTC-7, JT Olds wrote:For what it's worth, the --oldrev value isn't always "0" * 40 or something on review pushes and looks like it's set to what the branch actually was, so that doesn't help distinguish.
On Wednesday, February 15, 2017 at 12:09:52 PM UTC-7, JT Olds wrote:Hey folks!I am playing around with the synchronous ref-update hook. I was surprised by the combination of two behaviors that either one might have been unexpected.First, ref-update is called when reviews are opened. Even though no branch or tag or usual git ref has been updated, ref-update is called.Second, ref-update is called for reviews with "refs/heads/<branchname>" instead of "refs/for/<branchname>" or something to distinguish that it's a review.Is there a way to either not have ref-update get called for reviews, or to be able to distinguish between review-creation-triggered ref-update calls and normal git-level ref updates?Thanks!
--
Thanks. I'll have a look into that later. Can you confirm which version of Gerrit you've found this problem in? And is it a regression from an earlier version?
Thanks. I'll have a look into that later. Can you confirm which version of Gerrit you've found this problem in? And is it a regression from an earlier version?This is in tip from Git, and I really can't believe this is a regression from an earlier version, but I suppose it's not impossible. This seems like an architectural issue.