diff options
| author | Vicent Marti <tanoku@gmail.com> | 2013-01-03 04:24:12 +0100 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2013-01-03 04:24:12 +0100 |
| commit | 7761ce21625564b6526b89326c14a9843a1403d4 (patch) | |
| tree | 7982836b366da36a70017d8ce15856e08d7d27a2 /tests-clar/online/fetch.c | |
| parent | 4236164a77b57c42641530a523590a913ba299f9 (diff) | |
| parent | 922dd9788cfec2ec4727e1b264a2ad6a7f4849ba (diff) | |
| download | libgit2-7761ce21625564b6526b89326c14a9843a1403d4.tar.gz | |
Merge branch 'development' into clar2
Conflicts:
tests-clar/clone/nonetwork.c
tests-clar/online/clone.c
tests-clar/online/fetchhead.c
Diffstat (limited to 'tests-clar/online/fetch.c')
| -rw-r--r-- | tests-clar/online/fetch.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests-clar/online/fetch.c b/tests-clar/online/fetch.c index 6fcea2512..41cdb30e1 100644 --- a/tests-clar/online/fetch.c +++ b/tests-clar/online/fetch.c @@ -40,7 +40,7 @@ static void do_fetch(const char *url, git_remote_autotag_option_t flag, int n) callbacks.update_tips = update_tips; counter = 0; - cl_git_pass(git_remote_add(&remote, _repo, "test", url)); + cl_git_pass(git_remote_create(&remote, _repo, "test", url)); git_remote_set_callbacks(remote, &callbacks); git_remote_set_autotag(remote, flag); cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH)); @@ -85,13 +85,12 @@ void test_online_fetch__doesnt_retrieve_a_pack_when_the_repository_is_up_to_date { git_repository *_repository; bool invoked = false; - git_remote *remote, *origin; + git_remote *remote; git_clone_options opts = GIT_CLONE_OPTIONS_INIT; - opts.bare = true; - cl_git_pass(git_remote_new(&origin, NULL, "origin", "https://github.com/libgit2/TestGitRepository.git", GIT_REMOTE_DEFAULT_FETCH)); - cl_git_pass(git_clone(&_repository, origin, "./fetch/lg2", &opts)); + cl_git_pass(git_clone(&_repository, "https://github.com/libgit2/TestGitRepository.git", + "./fetch/lg2", &opts)); git_repository_free(_repository); cl_git_pass(git_repository_open(&_repository, "./fetch/lg2")); @@ -109,6 +108,5 @@ void test_online_fetch__doesnt_retrieve_a_pack_when_the_repository_is_up_to_date git_remote_disconnect(remote); git_remote_free(remote); - git_remote_free(origin); git_repository_free(_repository); } |
