8000 clone: clean up options on failure by ethomson · Pull Request #6479 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

clone: clean up options on failure #6479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
clone: clean up options on failure
  • Loading branch information
ethomson committed Feb 14, 2023
commit 527be0a202b2093cb5249cf6b534992869fa3bb5
2 changes: 1 addition & 1 deletion src/libgit2/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ static int clone_into(
fetch_opts.download_tags = GIT_REMOTE_DOWNLOAD_TAGS_ALL;

if ((error = git_remote_connect_options__from_fetch_opts(&connect_opts, remote, &fetch_opts)) < 0)
return error;
goto cleanup;

git_str_printf(&reflog_message, "clone: from %s", git_remote_url(remote));

Expand Down
0