summaryrefslogtreecommitdiff
path: root/tests-clar
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-03 20:25:56 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-05-08 21:36:40 +0200
commitbaaa8a447ed6da152038770805464485d5d7bb21 (patch)
treee8e9a43b92d031153a4e8a2df21e51c6b945512b /tests-clar
parenta209a025c642498f1fa1aecf91ce9e9504d0d419 (diff)
downloadlibgit2-baaa8a447ed6da152038770805464485d5d7bb21.tar.gz
remotes: change git_remote_new's signature
Add a fetch refspec arguemnt and make the arguments (name, url, refspec), as that order makes more sense.
Diffstat (limited to 'tests-clar')
-rw-r--r--tests-clar/network/remotelocal.c2
-rw-r--r--tests-clar/network/remotes.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/network/remotelocal.c b/tests-clar/network/remotelocal.c
index e154226d9..35fa072ef 100644
--- a/tests-clar/network/remotelocal.c
+++ b/tests-clar/network/remotelocal.c
@@ -85,7 +85,7 @@ static void connect_to_local_repository(const char *local_repository)
{
build_local_file_url(&file_path_buf, local_repository);
- cl_git_pass(git_remote_new(&remote, repo, git_buf_cstr(&file_path_buf), NULL));
+ cl_git_pass(git_remote_new(&remote, repo, NULL, git_buf_cstr(&file_path_buf), NULL));
cl_git_pass(git_remote_connect(remote, GIT_DIR_FETCH));
}
diff --git a/tests-clar/network/remotes.c b/tests-clar/network/remotes.c
index 608f09a27..0649c86dd 100644
--- a/tests-clar/network/remotes.c
+++ b/tests-clar/network/remotes.c
@@ -78,7 +78,7 @@ void test_network_remotes__save(void)
git_remote_free(_remote);
/* Set up the remote and save it to config */
- cl_git_pass(git_remote_new(&_remote, _repo, "git://github.com/libgit2/libgit2", "upstream"));
+ cl_git_pass(git_remote_new(&_remote, _repo, "upstream", "git://github.com/libgit2/libgit2", NULL));
cl_git_pass(git_remote_set_fetchspec(_remote, "refs/heads/*:refs/remotes/upstream/*"));
cl_git_pass(git_remote_set_pushspec(_remote, "refs/heads/*:refs/heads/*"));
cl_git_pass(git_remote_save(_remote));