Commit 55d9c29a by Carlos Martín Nieto

Merge pull request #2792 from swisspol/fix_remote_download

Fixed internal push state not being cleared when calling git_remote_download()
parents e48d0266 c070ac64
......@@ -885,6 +885,11 @@ int git_remote_download(git_remote *remote, const git_strarray *refspecs)
if (error < 0)
return error;
if (remote->push) {
git_push_free(remote->push);
remote->push = NULL;
}
if ((error = git_fetch_negotiate(remote)) < 0)
return error;
......
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