mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 15:52:02 +00:00
Fixed active refspecs not reset by git_remote_upload()
This commit is contained in:
parent
e22ffb4209
commit
1034f1b583
@ -2329,6 +2329,10 @@ int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const gi
|
||||
(error = git_remote_connect(remote, GIT_DIRECTION_PUSH)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
free_refspecs(&remote->active_refspecs);
|
||||
if (dwim_refspecs(&remote->active_refspecs, &remote->refspecs, &remote->refs) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (remote->push) {
|
||||
git_push_free(remote->push);
|
||||
remote->push = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user