diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-03-15 05:38:50 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-15 05:38:50 +0200 |
commit | 7ad96e51ca81974c417914edbc81a63e390c4301 (patch) | |
tree | 97cc0ec77feb32ad7fc1fbc41922d1eb49a9cdc4 /tests/t10-refs.c | |
parent | 5f8078d4dc325356e732c1a5e62acb7de04d72be (diff) | |
download | libgit2-7ad96e51ca81974c417914edbc81a63e390c4301.tar.gz |
Remove duplicate refs in `git_reference_listall`
Diffstat (limited to 'tests/t10-refs.c')
-rw-r--r-- | tests/t10-refs.c | 6 |
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); |