diff options
author | Vicent Martà <vicent@github.com> | 2013-04-23 12:15:35 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-23 12:15:35 -0700 |
commit | 495d6f07c44c48e9968eb82f65c3336ba1922398 (patch) | |
tree | 284a33d269512263672252f625b5e07f614c81db | |
parent | 7915e6cc66a28d0767fc9899e58b2ca544ee12d0 (diff) | |
parent | dfdf709e3f8aed5cb8ee54d9c508b65672c8a211 (diff) | |
download | libgit2-495d6f07c44c48e9968eb82f65c3336ba1922398.tar.gz |
Merge pull request #1502 from nvloff/remote_refspecs_minor_fixes
Remote refspecs minor fixes
-rw-r--r-- | include/git2/remote.h | 9 | ||||
-rw-r--r-- | tests-clar/clone/nonetwork.c | 2 |
2 files changed, 1 insertions, 10 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 5dcd93099..f02b95678 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -182,15 +182,6 @@ GIT_EXTERN(int) git_remote_add_push(git_remote *remote, const char *refspec); GIT_EXTERN(int) git_remote_get_push_refspecs(git_strarray *array, git_remote *remote); /** - * Get the push refspec - * - * @param remote the remote - * @return a pointer to the push refspec or NULL if it doesn't exist - */ - -GIT_EXTERN(const git_refspec *) git_remote_pushspec(const git_remote *remote); - -/** * Clear the refspecs * * Remove all configured fetch and push refspecs from the remote. diff --git a/tests-clar/clone/nonetwork.c b/tests-clar/clone/nonetwork.c index 02066e07d..506673737 100644 --- a/tests-clar/clone/nonetwork.c +++ b/tests-clar/clone/nonetwork.c @@ -149,7 +149,7 @@ void test_clone_nonetwork__custom_fetch_spec(void) cl_git_pass(git_clone(&g_repo, cl_git_fixture_url("testrepo.git"), "./foo", &g_options)); cl_git_pass(git_remote_load(&g_remote, g_repo, "origin")); - actual_fs = git_vector_get(&g_remote->refspecs, 0); + actual_fs = git_vector_get(&g_remote->refspecs, g_remote->refspecs.length - 1); cl_assert_equal_s("refs/heads/master", git_refspec_src(actual_fs)); cl_assert_equal_s("refs/heads/foo", git_refspec_dst(actual_fs)); |