diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-30 09:17:18 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-30 09:17:18 +0200 |
commit | 72b7c57093909d3f2333ebbc8c91953fce899b17 (patch) | |
tree | a541b94af6e56d6c6d925f79d7259d80762cf53c /tests/network/remote/defaultbranch.c | |
parent | c628ebca63316954b012fc9469e97513759d0353 (diff) | |
parent | d7375662e7b4c885ea4865403e4db4c130e79198 (diff) | |
download | libgit2-72b7c57093909d3f2333ebbc8c91953fce899b17.tar.gz |
Merge pull request #3411 from spraints/custom-push-headers
Include custom HTTP headers
Diffstat (limited to 'tests/network/remote/defaultbranch.c')
-rw-r--r-- | tests/network/remote/defaultbranch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/network/remote/defaultbranch.c b/tests/network/remote/defaultbranch.c index e83755ef6..5edd79fb8 100644 --- a/tests/network/remote/defaultbranch.c +++ b/tests/network/remote/defaultbranch.c @@ -26,7 +26,7 @@ static void assert_default_branch(const char *should) { git_buf name = GIT_BUF_INIT; - cl_git_pass(git_remote_connect(g_remote, GIT_DIRECTION_FETCH, NULL)); + cl_git_pass(git_remote_connect(g_remote, GIT_DIRECTION_FETCH, NULL, NULL)); cl_git_pass(git_remote_default_branch(&name, g_remote)); cl_assert_equal_s(should, name.ptr); git_buf_free(&name); @@ -57,7 +57,7 @@ void test_network_remote_defaultbranch__no_default_branch(void) git_buf buf = GIT_BUF_INIT; cl_git_pass(git_remote_create(&remote_b, g_repo_b, "self", git_repository_path(g_repo_b))); - cl_git_pass(git_remote_connect(remote_b, GIT_DIRECTION_FETCH, NULL)); + cl_git_pass(git_remote_connect(remote_b, GIT_DIRECTION_FETCH, NULL, NULL)); cl_git_pass(git_remote_ls(&heads, &len, remote_b)); cl_assert_equal_i(0, len); @@ -80,7 +80,7 @@ void test_network_remote_defaultbranch__detached_sharing_nonbranch_id(void) cl_git_pass(git_reference_create(&ref, g_repo_a, "refs/foo/bar", &id, 1, NULL)); git_reference_free(ref); - cl_git_pass(git_remote_connect(g_remote, GIT_DIRECTION_FETCH, NULL)); + cl_git_pass(git_remote_connect(g_remote, GIT_DIRECTION_FETCH, NULL, NULL)); cl_git_fail_with(GIT_ENOTFOUND, git_remote_default_branch(&buf, g_remote)); cl_git_pass(git_clone(&cloned_repo, git_repository_path(g_repo_a), "./local-detached", NULL)); |