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>
diff --git a/tests/t10-refs.c b/tests/t10-refs.c
index 995865d..413811c 100644
--- a/tests/t10-refs.c
+++ b/tests/t10-refs.c
@@ -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"));