diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 16:04:44 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 16:04:44 +0400 |
commit | 0e0cf78773bea0d06298ba3bf981a3be839041df (patch) | |
tree | 4b879238df61eccc2f048fe51e10fce421967e26 /src/clone.c | |
parent | ffc97d51264f8af435ccf52d33a62a6925b174c9 (diff) |
clone: put the callbacks struct directly in the clone options
There's no need for this to be a pointer to somewhere else.
Diffstat (limited to 'src/clone.c')
-rw-r--r-- | src/clone.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c index 1af6e393f..f3e365c07 100644 --- a/src/clone.c +++ b/src/clone.c @@ -315,8 +315,7 @@ static int create_and_configure_origin( if (options->ignore_cert_errors) git_remote_check_cert(origin, 0); - if (options->remote_callbacks && - (error = git_remote_set_callbacks(origin, options->remote_callbacks)) < 0) + if ((error = git_remote_set_callbacks(origin, &options->remote_callbacks)) < 0) goto on_error; if ((error = git_remote_save(origin)) < 0) |