Display an error from update-ref if target ref name is invalid.