Skip to content

Properly initialize the clone options#426

Merged
carlosmn merged 2 commits intolibgit2:masterfrom
carlosmn:checkout-init-options
Sep 13, 2014
Merged

Properly initialize the clone options#426
carlosmn merged 2 commits intolibgit2:masterfrom
carlosmn:checkout-init-options

Conversation

@carlosmn
Copy link
Member

libgit2 provides an initialization function to set sane defaults. Use
that instead of setting the version by hand, as that's not the only
thing it does.

Using C.git_clone_init_options() sets the checkout strategy to SAFE,
which will checkout the files after the clone, instead of the implicit
NONE which we're setting by hand.

This fixes #425,

libgit2 provides an initialization function to set sane defaults. Use
that instead of setting the version by hand, as that's not the only
thing it does.

Using C.git_clone_init_options() sets the checkout strategy to SAFE,
which will checkout the files after the clone, instead of the implicit
NONE which we're setting by hand.

This fixes libgit2#425,
@carlosmn carlosmn force-pushed the checkout-init-options branch from c5f8d20 to 7d34d2b Compare September 13, 2014 16:59
carlosmn added a commit that referenced this pull request Sep 13, 2014
Properly initialize the clone options
@carlosmn carlosmn merged commit 5bc6a98 into libgit2:master Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clone_repository() function not working

1 participant