Skip to content

Commit 304f932

Browse files
Cykelerolucasderraugh
authored andcommitted
Update gitup_clone_into() call to clone_into()
There's no 5-argument version of that function anymore.
1 parent 97ed264 commit 304f932

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libgit2/clone.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,13 @@ int gitup_clone_into(
706706
const char *branch)
707707
{
708708
assert(repo && remote && fetch_opts && checkout_opts);
709-
return clone_into(repo, remote, fetch_opts, checkout_opts, branch);
709+
710+
git_clone_options options = GIT_CLONE_OPTIONS_INIT;
711+
options.fetch_opts = *fetch_opts;
712+
options.checkout_opts = *checkout_opts;
713+
options.checkout_branch = branch;
714+
715+
return clone_into(repo, remote, &options);
710716
}
711717

712718
#ifndef GIT_DEPRECATE_HARD

0 commit comments

Comments
 (0)