summaryrefslogtreecommitdiff
path: root/src/clone.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 /src/clone.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 'src/clone.c')
-rw-r--r--src/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index cb4053736..8f10ca819 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -324,11 +324,11 @@ static int create_and_configure_origin(
goto on_error;
if (options->fetch_spec &&
- (error = git_remote_add_fetchspec(origin, options->fetch_spec)) < 0)
+ (error = git_remote_add_fetch(origin, options->fetch_spec)) < 0)
goto on_error;
if (options->push_spec &&
- (error = git_remote_add_pushspec(origin, options->push_spec)) < 0)
+ (error = git_remote_add_push(origin, options->push_spec)) < 0)
goto on_error;
if (options->pushurl &&