diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-20 20:49:11 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-04-20 21:45:40 +0400 |
commit | bc6374eac485ab9ad9cfd7165b6d071c3dcb673a (patch) | |
tree | 8ba82d9d64953384895afb1e26a33c3c7d5c6832 /tests-clar/refs | |
parent | 4330ab26b53c0e1bf8cbb5e65704f65e3d116eba (diff) |
remote: allow querying for refspecs
Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs
from the remote and rename the refspec-adding functions to a less
silly name.
Use this instead of the vector index hacks in the tests.
Diffstat (limited to 'tests-clar/refs')
-rw-r--r-- | tests-clar/refs/branches/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/refs/branches/remote.c b/tests-clar/refs/branches/remote.c index 475fa54a8..6043828b3 100644 --- a/tests-clar/refs/branches/remote.c +++ b/tests-clar/refs/branches/remote.c @@ -70,7 +70,7 @@ void test_refs_branches_remote__ambiguous_remote_returns_error(void) /* Update the remote fetch spec */ git_remote_clear_refspecs(remote); - cl_git_pass(git_remote_add_fetchspec(remote, "refs/heads/*:refs/remotes/test/*")); + cl_git_pass(git_remote_add_fetch(remote, "refs/heads/*:refs/remotes/test/*")); cl_git_pass(git_remote_save(remote)); git_remote_free(remote); |