diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-01-26 08:57:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 08:57:18 +0000 |
commit | c438d0bb8327854b2c7d8ac5d82baf3bf6d1ed58 (patch) | |
tree | d03cb01a5cfd69670a92ce771bb36eceb39298e3 | |
parent | 0384a4024e16744dc855094e3e4bc97216576e14 (diff) | |
parent | ae7a0a63658305560e5ee3463fda857d8f13e6b3 (diff) | |
download | libgit2-c438d0bb8327854b2c7d8ac5d82baf3bf6d1ed58.tar.gz |
Merge pull request #6444 from abizjak/main
-rw-r--r-- | src/libgit2/submodule.c | 2 |
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; |