summaryrefslogtreecommitdiff
path: root/tests-clar/online/fetchhead.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-04-20 18:49:11 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-04-20 19:45:40 +0200
commitbc6374eac485ab9ad9cfd7165b6d071c3dcb673a (patch)
tree8ba82d9d64953384895afb1e26a33c3c7d5c6832 /tests-clar/online/fetchhead.c
parent4330ab26b53c0e1bf8cbb5e65704f65e3d116eba (diff)
downloadlibgit2-bc6374eac485ab9ad9cfd7165b6d071c3dcb673a.tar.gz
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/online/fetchhead.c')
-rw-r--r--tests-clar/online/fetchhead.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/online/fetchhead.c b/tests-clar/online/fetchhead.c
index 3cbdc7e93..e14ae0926 100644
--- a/tests-clar/online/fetchhead.c
+++ b/tests-clar/online/fetchhead.c
@@ -44,7 +44,7 @@ static void fetchhead_test_fetch(const char *fetchspec, const char *expected_fet
if(fetchspec != NULL) {
git_remote_clear_refspecs(remote);
- git_remote_add_fetchspec(remote, fetchspec);
+ git_remote_add_fetch(remote, fetchspec);
}
cl_git_pass(git_remote_connect(remote, GIT_DIRECTION_FETCH));