Re: [PATCH v2 4/6] refs: add REF_SKIP_REFNAME_VERIFICATION flag
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 29, 2021, 23:31 UTC
- Message-ID
- <xmqqbl224k09.fsf@gitster.g>
- In-Reply-To
- <0a297f0c3e884c2d4cfb24a6d3b9f1973fc83125.1638211786.git.gitgitgadget@gmail.com>
"Han-Wen Nienhuys via GitGitGadget" <gitgitgadget@gmail.com> writes:
> + if (!(flags & REF_SKIP_REFNAME_VERIFICATION) &&
> + ((new_oid && !is_null_oid(new_oid)) ?
> + check_refname_format(refname, REFNAME_ALLOW_ONELEVEL) :
> + !refname_is_safe(refname))) {So, if somebody passes REF_SKIP_REFNAME_VERIFICATION in flags, we will not do the check.
Again, like 3/6, this new bit is flipped on by test-helper somewhere? Again I do not see anybody doing so in these 6 patches, but I should double check.