Skip to content

Commit

Permalink
Merge pull request #162 from dmgctrl/master
Browse files Browse the repository at this point in the history
Update clone checkout strategy to GIT_CHECKOUT_SAFE_CREATE
  • Loading branch information
jspahrsummers committed May 14, 2013
2 parents 447a256 + 6677249 commit 9d1792b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/GTRepository.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ + (id)cloneFromURL:(NSURL *)originURL toWorkingDirectory:(NSURL *)workdirURL bar

if (withCheckout) {
git_checkout_opts checkoutOptions = GIT_CHECKOUT_OPTS_INIT;
checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE;
checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
checkoutOptions.progress_cb = checkoutProgressCallback;
checkoutOptions.progress_payload = (__bridge void *)checkoutProgressBlock;
cloneOptions.checkout_opts = checkoutOptions;
Expand Down

0 comments on commit 9d1792b

Please sign in to comment.