summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-03-29 11:43:31 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-29 19:58:19 +0300
commit553fbd640fab5a3f52a20cf1f1ed045ba9349d65 (patch)
tree36f6f230b96a2a7651d93191176bcbbcaf7856a9
parent83c95128d924b029b30551f95170df8696583e10 (diff)
downloadlibgit2-553fbd640fab5a3f52a20cf1f1ed045ba9349d65.tar.gz
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>
-rw-r--r--tests/t10-refs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/t10-refs.c b/tests/t10-refs.c
index 995865dc8..413811c9d 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"));