summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorNikolaus Schuetz <nikolauspschuetz@gmail.com>2026-08-20 22:20:17 +0000
committerJunio C Hamano <gitster@pobox.com>2026-08-26 13:09:23 -0700
commitf27e711b7bd69406ce1ddc51a8239a894e6b88cc (patch)
tree2a7d5692dab3ea9de75a5deb17a37a740cd9730b /t/t4013/diff.diff_initial..side
parent1260b4661c181884e2069ac9adb6189b3d6cc2f1 (diff)
t1402: test forbidden characters in refnames
git-check-ref-format(1) documents that a refname cannot contain a space, tilde, caret, colon, question-mark, asterisk, open-bracket or backslash, nor the sequence "..", and cannot be the single character "@". Of these, only "?", "\" and ".." were tested embedded in an otherwise-valid refname; "*" was checked only as a lone character or with --refspec-pattern. Test all of them in that embedded form with a single loop, and check that "@" alone is rejected even with --allow-onelevel -- where "@" is otherwise a valid refname component, as "refs/@" confirms. Signed-off-by: Nikolaus Schuetz <nikolauspschuetz@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions