diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-22 16:11:10 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 09:46:36 +0200 |
commit | 3eff2a57289ec19b1a805dd938299d1dcae47097 (patch) | |
tree | 3bd01239ee483c5a8d60768228d9968f2ff90611 /tests | |
parent | 058b753ceb8f6b25b77e57106b3a87997bc6362a (diff) | |
download | libgit2-3eff2a57289ec19b1a805dd938299d1dcae47097.tar.gz |
remote: move the update_fetchhead setting to the options
While this will rarely be different from the default, having it in the
remote adds yet another setting it has to keep around and can affect its
behaviour. Move it to the options.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/network/remote/local.c | 6 | ||||
-rw-r--r-- | tests/online/fetch.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/network/remote/local.c b/tests/network/remote/local.c index 1e03371f0..9134b60b1 100644 --- a/tests/network/remote/local.c +++ b/tests/network/remote/local.c @@ -241,7 +241,7 @@ void test_network_remote_local__push_to_bare_remote_with_file_url(void) /* Get some commits */ connect_to_local_repository(cl_fixture("testrepo.git")); cl_git_pass(git_remote_download(remote, &array, NULL)); - cl_git_pass(git_remote_update_tips(remote, NULL, NULL)); + cl_git_pass(git_remote_update_tips(remote, NULL, 1, NULL)); git_remote_disconnect(remote); /* Set up an empty bare repo to push into */ @@ -282,7 +282,7 @@ void test_network_remote_local__push_to_non_bare_remote(void) /* Get some commits */ connect_to_local_repository(cl_fixture("testrepo.git")); cl_git_pass(git_remote_download(remote, &array, NULL)); - cl_git_pass(git_remote_update_tips(remote, NULL, NULL)); + cl_git_pass(git_remote_update_tips(remote, NULL, 1, NULL)); git_remote_disconnect(remote); /* Set up an empty non-bare repo to push into */ @@ -350,7 +350,7 @@ void test_network_remote_local__reflog(void) connect_to_local_repository(cl_fixture("testrepo.git")); cl_git_pass(git_remote_download(remote, &array, NULL)); - cl_git_pass(git_remote_update_tips(remote, NULL, "UPDAAAAAATE!!")); + cl_git_pass(git_remote_update_tips(remote, NULL, 1, "UPDAAAAAATE!!")); cl_git_pass(git_reflog_read(&log, repo, "refs/remotes/sloppy/master")); cl_assert_equal_i(1, git_reflog_entrycount(log)); diff --git a/tests/online/fetch.c b/tests/online/fetch.c index 1a0f05039..da0df0ad5 100644 --- a/tests/online/fetch.c +++ b/tests/online/fetch.c @@ -127,7 +127,7 @@ void test_online_fetch__doesnt_retrieve_a_pack_when_the_repository_is_up_to_date cl_assert_equal_i(false, invoked); - cl_git_pass(git_remote_update_tips(remote, &options.callbacks, NULL)); + cl_git_pass(git_remote_update_tips(remote, &options.callbacks, 1, NULL)); git_remote_disconnect(remote); git_remote_free(remote); |