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
3da73c40
Commit
3da73c40
authored
Nov 29, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warnings
parent
da820437
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
tests-clar/network/fetch.c
+3
-0
tests-clar/refs/branches/tracking.c
+4
-4
No files found.
tests-clar/network/fetch.c
View file @
3da73c40
...
...
@@ -79,6 +79,9 @@ void test_network_fetch__no_tags_http(void)
static
void
transferProgressCallback
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
{
bool
*
invoked
=
(
bool
*
)
payload
;
GIT_UNUSED
(
stats
);
*
invoked
=
true
;
}
...
...
tests-clar/refs/branches/tracking.c
View file @
3da73c40
...
...
@@ -61,7 +61,7 @@ void test_refs_branches_tracking__trying_to_retrieve_a_remote_tracking_reference
cl_assert_equal_i
(
GIT_ENOTFOUND
,
git_branch_tracking
(
&
tracking
,
branch
));
}
static
void
assert_merge_and_or_remote_key_missing
(
git_repository
*
repository
,
git_objec
t
*
target
,
const
char
*
entry_name
)
static
void
assert_merge_and_or_remote_key_missing
(
git_repository
*
repository
,
const
git_commi
t
*
target
,
const
char
*
entry_name
)
{
git_reference
*
branch
;
...
...
@@ -76,19 +76,19 @@ void test_refs_branches_tracking__retrieve_a_remote_tracking_reference_from_a_br
{
git_reference
*
head
;
git_repository
*
repository
;
git_
objec
t
*
target
;
git_
commi
t
*
target
;
repository
=
cl_git_sandbox_init
(
"testrepo.git"
);
cl_git_pass
(
git_repository_head
(
&
head
,
repository
));
cl_git_pass
(
git_reference_peel
(
&
target
,
head
,
GIT_OBJ_COMMIT
));
cl_git_pass
(
git_reference_peel
(
((
git_object
**
)
&
target
)
,
head
,
GIT_OBJ_COMMIT
));
git_reference_free
(
head
);
assert_merge_and_or_remote_key_missing
(
repository
,
target
,
"remoteless"
);
assert_merge_and_or_remote_key_missing
(
repository
,
target
,
"mergeless"
);
assert_merge_and_or_remote_key_missing
(
repository
,
target
,
"mergeandremoteless"
);
git_
objec
t_free
(
target
);
git_
commi
t_free
(
target
);
cl_git_sandbox_cleanup
();
}
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