diff options
author | Josh Leeb-du Toit <josh.leebdutoit@gmail.com> | 2016-09-26 19:32:15 +1000 |
---|---|---|
committer | Josh Leeb-du Toit <josh.leebdutoit@gmail.com> | 2016-10-10 09:50:24 +1100 |
commit | 567fd782d92e0e55724e93931faf28005d71904e (patch) | |
tree | d9c5f5c959e43941b1cfa73505601d7c68e551f4 /src/submodule.c | |
parent | 610cff13a31964eeb2264a452424e1e3d49accc3 (diff) | |
download | libgit2-567fd782d92e0e55724e93931faf28005d71904e.tar.gz |
Remove `clone_checkout_strategy` in submodule update opts
Remove `clone_checkout_strategy` in `git_submodule_update_options` as
per issue #3784.
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index 86ad53be0..0175ac5d7 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1160,7 +1160,7 @@ int git_submodule_update(git_submodule *sm, int init, git_submodule_update_optio * will checkout the specific commit manually. */ clone_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_NONE; - update_options.checkout_opts.checkout_strategy = update_options.clone_checkout_strategy; + update_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE; if ((error = git_clone(&sub_repo, submodule_url, sm->path, &clone_options)) < 0 || (error = git_repository_set_head_detached(sub_repo, git_submodule_index_id(sm))) < 0 || |