summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ganz <neither@nut.email>2018-06-01 08:57:17 +0200
committerJulian Ganz <neither@nut.email>2018-06-01 13:40:55 +0200
commitd7eca4c39cdad217a813a3f02f3b8eb3ce3159f9 (patch)
treee44b6169ea1d6cd0f5a20a8c97956c9c8d7754ce
parent05e891f1f1bad3e2729a2e3800b314d5b63d43eb (diff)
downloadlibgit2-d7eca4c39cdad217a813a3f02f3b8eb3ce3159f9.tar.gz
refdb_fs: add test for globbing of nonexistant refs
-rw-r--r--tests/refs/foreachglob.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/refs/foreachglob.c b/tests/refs/foreachglob.c
index a09191e79..a13529376 100644
--- a/tests/refs/foreachglob.c
+++ b/tests/refs/foreachglob.c
@@ -62,6 +62,11 @@ void test_refs_foreachglob__retrieve_local_branches(void)
assert_retrieval("refs/heads/*", 12);
}
+void test_refs_foreachglob__retrieve_nonexistant(void)
+{
+ assert_retrieval("refs/nonexistent/*", 0);
+}
+
void test_refs_foreachglob__retrieve_partially_named_references(void)
{
/*