summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-26 08:57:18 +0000
committerGitHub <noreply@github.com>2023-01-26 08:57:18 +0000
commitc438d0bb8327854b2c7d8ac5d82baf3bf6d1ed58 (patch)
treed03cb01a5cfd69670a92ce771bb36eceb39298e3
parent0384a4024e16744dc855094e3e4bc97216576e14 (diff)
parentae7a0a63658305560e5ee3463fda857d8f13e6b3 (diff)
downloadlibgit2-c438d0bb8327854b2c7d8ac5d82baf3bf6d1ed58.tar.gz
Merge pull request #6444 from abizjak/main
-rw-r--r--src/libgit2/submodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/submodule.c b/src/libgit2/submodule.c
index b57ecff5c..95ea84fc2 100644
--- a/src/libgit2/submodule.c
+++ b/src/libgit2/submodule.c
@@ -1393,7 +1393,7 @@ int git_submodule_update(git_submodule *sm, int init, git_submodule_update_optio
*/
clone_options.checkout_opts.checkout_strategy = GIT_CHECKOUT_NONE;
- if ((error = git_clone(&sub_repo, submodule_url, sm->path, &clone_options)) < 0 ||
+ if ((error = git_clone__submodule(&sub_repo, submodule_url, sm->path, &clone_options)) < 0 ||
(error = git_repository_set_head_detached(sub_repo, git_submodule_index_id(sm))) < 0 ||
(error = git_checkout_head(sub_repo, &update_options.checkout_opts)) != 0)
goto done;