diff options
Diffstat (limited to 'src/clone.c')
| -rw-r--r-- | src/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c index fae2458ca..9c4a5d9a1 100644 --- a/src/clone.c +++ b/src/clone.c @@ -267,7 +267,7 @@ static int create_and_configure_origin( int error; git_remote *origin = NULL; - if ((error = git_remote_add(&origin, repo, options->remote_name, url)) < 0) + if ((error = git_remote_create(&origin, repo, options->remote_name, url)) < 0) goto on_error; git_remote_set_cred_acquire_cb(origin, options->cred_acquire_cb, |
