in CrOS we had to tweak git-r3.eclass to support gerrit namespaces. specifically, it uses refs/sandbox/* and refs/changes/* to host commits in addition to refs/heads/*. but rather than hardcode these additional things, we inverted the check to accept all refs/* except refs/tags/* explicitly. patch is here: https://chromium-review.googlesource.com/#/c/281396/2/eclass/git-r3.eclass
Hmm, I wonder if we could make it even simpler and limit it to [[ != refs/tags/* ]].
Either I'm missing something or your patch is done against some ancient version of the eclass.
it most likely is, but the point wasn't really to merge it directly, but to use as a reference point of what we needed/wanted
Patches sent for review.
Merged.