Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
5c7b77c4
Commit
5c7b77c4
authored
Jan 22, 2013
by
Scott J. Goldman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Seperate out a new test that verifies packed-refs with no trailing newline
as per @vmg's request
parent
cb35094b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
tests-clar/object/tag/read.c
+0
-3
tests-clar/refs/listall.c
+11
-0
No files found.
tests-clar/object/tag/read.c
View file @
5c7b77c4
...
...
@@ -62,7 +62,6 @@ 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"
)));
...
...
@@ -82,9 +81,7 @@ 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
);
...
...
tests-clar/refs/listall.c
View file @
5c7b77c4
...
...
@@ -34,3 +34,14 @@ void test_refs_listall__from_repository_opened_through_gitdir_path(void)
{
ensure_no_refname_starts_with_a_forward_slash
(
cl_fixture
(
"testrepo.git"
));
}
void
test_refs_listall__from_repository_with_no_trailing_newline
(
void
)
{
cl_git_pass
(
git_repository_open
(
&
repo
,
cl_fixture
(
"bad_tag.git"
)));
cl_git_pass
(
git_reference_list
(
&
ref_list
,
repo
,
GIT_REF_LISTALL
));
cl_assert
(
ref_list
.
count
>
0
);
git_strarray_free
(
&
ref_list
);
git_repository_free
(
repo
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment