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
d113791d
Commit
d113791d
authored
Mar 01, 2014
by
Matthias Bartelmeß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a test, that fails for #2133
parent
0511b15c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
tests/online/fetch.c
+15
-0
No files found.
tests/online/fetch.c
View file @
d113791d
...
@@ -81,6 +81,21 @@ void test_online_fetch__no_tags_http(void)
...
@@ -81,6 +81,21 @@ void test_online_fetch__no_tags_http(void)
do_fetch
(
"http://github.com/libgit2/TestGitRepository.git"
,
GIT_REMOTE_DOWNLOAD_TAGS_NONE
,
3
);
do_fetch
(
"http://github.com/libgit2/TestGitRepository.git"
,
GIT_REMOTE_DOWNLOAD_TAGS_NONE
,
3
);
}
}
void
test_online_fetch__fetch_twice
(
void
)
{
git_remote
*
remote
;
cl_git_pass
(
git_remote_create
(
&
remote
,
_repo
,
"test"
,
"git://github.com/libgit2/TestGitRepository.git"
));
cl_git_pass
(
git_remote_connect
(
remote
,
GIT_DIRECTION_FETCH
));
cl_git_pass
(
git_remote_download
(
remote
));
git_remote_disconnect
(
remote
);
git_remote_connect
(
remote
,
GIT_DIRECTION_FETCH
);
cl_git_pass
(
git_remote_download
(
remote
));
git_remote_disconnect
(
remote
);
git_remote_free
(
remote
);
}
static
int
transferProgressCallback
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
static
int
transferProgressCallback
(
const
git_transfer_progress
*
stats
,
void
*
payload
)
{
{
bool
*
invoked
=
(
bool
*
)
payload
;
bool
*
invoked
=
(
bool
*
)
payload
;
...
...
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