Merge branch 'fd/check-ref-format-onelevel-tests' into jch

Tests for the option precedence of '--allow-onelevel' and its
negated form have been added to 'git check-ref-format',
establishing the current behavior before a planned migration to the
'parse_options()' API.

* fd/check-ref-format-onelevel-tests:
  t1402: test --no-allow-onelevel option precedence
This commit is contained in:
Junio C Hamano committed 2026-11-05 20:44:36 -08:00
commit b0f65754d8
1 file changed
+2
+2
View File
@@ -74,6 +74,8 @@ invalid_ref 'heads/foo*/bar*' --refspec-pattern
ref='foo'
invalid_ref "$ref"
valid_ref "$ref" --allow-onelevel
invalid_ref "$ref" '--allow-onelevel --no-allow-onelevel'
valid_ref "$ref" '--no-allow-onelevel --allow-onelevel'
invalid_ref "$ref" --refspec-pattern
valid_ref "$ref" '--refspec-pattern --allow-onelevel'
invalid_ref "$ref" --normalize