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 /src/clone.c | |
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 'src/clone.c')
-rw-r--r-- | src/clone.c | 4 |
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 && |