8000 Merge pull request #6479 from libgit2/ethomson/clone · libgit2/libgit2@bf2f44d · GitHub
[go: up one dir, main page]

Skip to content

Commit bf2f44d

Browse files
authored
Merge pull request #6479 from libgit2/ethomson/clone
clone: clean up options on failure
2 parents 80742e1 + 527be0a commit bf2f44d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ static int clone_into(
423423
fetch_opts.download_tags = GIT_REMOTE_DOWNLOAD_TAGS_ALL;
424424

425425
if ((error = git_remote_connect_options__from_fetch_opts(&connect_opts, remote, &fetch_opts)) < 0)
426-
return error;
426+
goto cleanup;
427427

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

0 commit comments

Comments
 (0)
0