Unverified Commit bf2f44d6 by Edward Thomson Committed by GitHub

Merge pull request #6479 from libgit2/ethomson/clone

clone: clean up options on failure
parents 80742e15 527be0a2
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment