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
e48dbdf9
Commit
e48dbdf9
authored
May 20, 2019
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fetchhead: use size_t in tests
parent
3edbc441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/online/fetchhead.c
+5
-5
No files found.
tests/online/fetchhead.c
View file @
e48dbdf9
...
@@ -35,10 +35,10 @@ static void fetchhead_test_clone(void)
...
@@ -35,10 +35,10 @@ static void fetchhead_test_clone(void)
cl_git_pass
(
git_clone
(
&
g_repo
,
LIVE_REPO_URL
,
"./foo"
,
&
g_options
));
cl_git_pass
(
git_clone
(
&
g_repo
,
LIVE_REPO_URL
,
"./foo"
,
&
g_options
));
}
}
static
in
t
count_references
(
void
)
static
size_
t
count_references
(
void
)
{
{
git_strarray
array
;
git_strarray
array
;
in
t
refs
;
size_
t
refs
;
cl_git_pass
(
git_reference_list
(
&
array
,
g_repo
));
cl_git_pass
(
git_reference_list
(
&
array
,
g_repo
));
refs
=
array
.
count
;
refs
=
array
.
count
;
...
@@ -118,7 +118,7 @@ void test_online_fetchhead__no_merges(void)
...
@@ -118,7 +118,7 @@ void test_online_fetchhead__no_merges(void)
void
test_online_fetchhead__explicit_dst_refspec_creates_branch
(
void
)
void
test_online_fetchhead__explicit_dst_refspec_creates_branch
(
void
)
{
{
git_reference
*
ref
;
git_reference
*
ref
;
in
t
refs
;
size_
t
refs
;
fetchhead_test_clone
();
fetchhead_test_clone
();
refs
=
count_references
();
refs
=
count_references
();
...
@@ -133,7 +133,7 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
...
@@ -133,7 +133,7 @@ void test_online_fetchhead__explicit_dst_refspec_creates_branch(void)
void
test_online_fetchhead__empty_dst_refspec_creates_no_branch
(
void
)
void
test_online_fetchhead__empty_dst_refspec_creates_no_branch
(
void
)
{
{
git_reference
*
ref
;
git_reference
*
ref
;
in
t
refs
;
size_
t
refs
;
fetchhead_test_clone
();
fetchhead_test_clone
();
refs
=
count_references
();
refs
=
count_references
();
...
@@ -146,7 +146,7 @@ void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)
...
@@ -146,7 +146,7 @@ void test_online_fetchhead__empty_dst_refspec_creates_no_branch(void)
void
test_online_fetchhead__colon_only_dst_refspec_creates_no_branch
(
void
)
void
test_online_fetchhead__colon_only_dst_refspec_creates_no_branch
(
void
)
{
{
in
t
refs
;
size_
t
refs
;
fetchhead_test_clone
();
fetchhead_test_clone
();
refs
=
count_references
();
refs
=
count_references
();
...
...
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