diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 16:33:54 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-06 21:43:04 +0200 |
commit | 72bca13e5d0d421da7992f029e275d950c864105 (patch) | |
tree | 4ddc73e8770e136cc2e4d28bfbf472cedcb2cf1f /tests/submodule | |
parent | 61dcfe1400a5ff1cf4dc805795cb72657c524906 (diff) | |
download | libgit2-72bca13e5d0d421da7992f029e275d950c864105.tar.gz |
remote: return problem refspecs instead of using a callback
There is no reason why we need to use a callback here. A string array
fits better with the usage, as this is not an event and we don't need
anything from the user.
Diffstat (limited to 'tests/submodule')
-rw-r--r-- | tests/submodule/add.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/submodule/add.c b/tests/submodule/add.c index af81713f1..9fdc7cc57 100644 --- a/tests/submodule/add.c +++ b/tests/submodule/add.c @@ -68,13 +68,16 @@ void test_submodule_add__url_relative(void) { git_submodule *sm; git_remote *remote; + git_strarray problems = {0}; /* default remote url is https://github.com/libgit2/false.git */ g_repo = cl_git_sandbox_init("testrepo2"); /* make sure we don't default to origin - rename origin -> test_remote */ cl_git_pass(git_remote_load(&remote, g_repo, "origin")); - cl_git_pass(git_remote_rename(remote, "test_remote", NULL, NULL)); + cl_git_pass(git_remote_rename(&problems, remote, "test_remote")); + cl_assert_equal_i(0, problems.count); + git_strarray_free(&problems); cl_git_fail(git_remote_load(&remote, g_repo, "origin")); git_remote_free(remote); |