We really should validate that the expression Constants.R_TAGS + name will pass Repository.isValidRefName().  If it doesn't we should fail-fast either here during setName(), or during processOptions() above.

I'm pretty sure that updateRef() will blindly do whatever you tell it, and we are relying on callers to check that the name is reasonable.