Commit cf688ffd by Pierre-Olivier Latour Committed by Carlos Martín Nieto

Fixed active refspecs not reset by git_remote_upload()

parent 7a5682f5
...@@ -2330,6 +2330,10 @@ int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const gi ...@@ -2330,6 +2330,10 @@ int git_remote_upload(git_remote *remote, const git_strarray *refspecs, const gi
(error = git_remote_connect(remote, GIT_DIRECTION_PUSH)) < 0) (error = git_remote_connect(remote, GIT_DIRECTION_PUSH)) < 0)
goto cleanup; goto cleanup;
free_refspecs(&remote->active_refspecs);
if (dwim_refspecs(&remote->active_refspecs, &remote->refspecs, &remote->refs) < 0)
goto cleanup;
if (remote->push) { if (remote->push) {
git_push_free(remote->push); git_push_free(remote->push);
remote->push = NULL; remote->push = NULL;
......
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