]> git.proxmox.com Git - libgit2.git/commitdiff
Check for looser reference names
authorCarlos Martín Nieto <cmn@elego.de>
Tue, 29 Mar 2011 09:43:31 +0000 (11:43 +0200)
committerVicent Marti <tanoku@gmail.com>
Tue, 29 Mar 2011 16:58:19 +0000 (19:58 +0300)
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>
tests/t10-refs.c

index 995865dc879e30efdec84f8eaecad0a2d6b3221e..413811c9dd7af6122d4db7f8e66298bb0989e441 100644 (file)
@@ -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"));