summaryrefslogtreecommitdiff
path: root/tests-clar/object
diff options
context:
space:
mode:
authorScott J. Goldman <scottjg@github.com>2013-01-22 15:49:51 -0800
committerScott J. Goldman <scottjg@github.com>2013-01-22 15:49:51 -0800
commitcb35094be3c1dbe369454118e801e703d70c4a33 (patch)
tree39b48c5a56d0d0954c47394ebea1ea999e359171 /tests-clar/object
parent2a707d0e24e206666626ae858e5ba618ffef0547 (diff)
downloadlibgit2-cb35094be3c1dbe369454118e801e703d70c4a33.tar.gz
Allow peeled references without trailing newline at end of file
Also ammends one of the tag tests to make sure it's working.
Diffstat (limited to 'tests-clar/object')
-rw-r--r--tests-clar/object/tag/read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests-clar/object/tag/read.c b/tests-clar/object/tag/read.c
index 53272e91c..6dab2a9a9 100644
--- a/tests-clar/object/tag/read.c
+++ b/tests-clar/object/tag/read.c
@@ -62,6 +62,7 @@ void test_object_tag_read__parse_without_tagger(void)
git_tag *bad_tag;
git_commit *commit;
git_oid id, id_commit;
+ git_strarray ref_list;
// TODO: This is a little messy
cl_git_pass(git_repository_open(&bad_tag_repo, cl_fixture("bad_tag.git")));
@@ -81,6 +82,9 @@ void test_object_tag_read__parse_without_tagger(void)
cl_assert(git_oid_cmp(&id_commit, git_commit_id(commit)) == 0);
+ cl_git_pass(git_reference_list(&ref_list, bad_tag_repo, GIT_REF_LISTALL));
+
+ git_strarray_free(&ref_list);
git_tag_free(bad_tag);
git_commit_free(commit);
git_repository_free(bad_tag_repo);