mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-30 17:06:21 +00:00
Check for looser reference names
res/dummy/a and refs/stash must pass. The other rules are already tested by the rest of the checks. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
This commit is contained in:
parent
83c95128d9
commit
553fbd640f
@ -691,7 +691,8 @@ BEGIN_TEST(normalize0, "normalize a direct (OID) reference name")
|
||||
must_fail(ensure_refname_normalized(OID_REF, "refs/heads/a/", NULL));
|
||||
must_fail(ensure_refname_normalized(OID_REF, "refs/heads/a.", NULL));
|
||||
must_fail(ensure_refname_normalized(OID_REF, "refs/heads/a.lock", NULL));
|
||||
must_fail(ensure_refname_normalized(OID_REF, "refs/dummy/a", NULL));
|
||||
must_pass(ensure_refname_normalized(OID_REF, "refs/dummy/a", NULL));
|
||||
must_pass(ensure_refname_normalized(OID_REF, "refs/stash", NULL));
|
||||
must_pass(ensure_refname_normalized(OID_REF, "refs/tags/a", "refs/tags/a"));
|
||||
must_pass(ensure_refname_normalized(OID_REF, "refs/heads/a/b", "refs/heads/a/b"));
|
||||
must_pass(ensure_refname_normalized(OID_REF, "refs/heads/a./b", "refs/heads/a./b"));
|
||||
|
Loading…
Reference in New Issue
Block a user