summaryrefslogtreecommitdiff
path: root/tests/t10-refs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t10-refs.c')
-rw-r--r--tests/t10-refs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/t10-refs.c b/tests/t10-refs.c
index c70fb69ce..2c4c8a2dd 100644
--- a/tests/t10-refs.c
+++ b/tests/t10-refs.c
@@ -716,7 +716,11 @@ BEGIN_TEST(list0, "try to list all the references in our test repo")
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
must_pass(git_reference_listall(&ref_list, repo, GIT_REF_LISTALL));
- must_be_true(ref_list.count == 8); /* 8 refs in total if we include the packed ones */
+
+ /* We have exactly 7 refs in total if we include the packed ones:
+ * there is a reference that exists both in the packfile and as
+ * loose, but we only list it once */
+ must_be_true(ref_list.count == 7);
git_strarray_free(&ref_list);
git_repository_free(repo);