diff options
author | Pierre-Olivier Latour <pol@mac.com> | 2015-03-05 23:06:31 -0800 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2015-03-21 21:12:10 +0100 |
commit | cf688ffd2841dbf43901dcf252f30d31cf3bf242 (patch) | |
tree | d53bb2b9bbe0fc4e430ed44fe0d68263a2a347b1 | |
parent | 7a5682f5936b60df71cc482cb32742d4aacacae4 (diff) | |
download | libgit2-cf688ffd2841dbf43901dcf252f30d31cf3bf242.tar.gz |
Fixed active refspecs not reset by git_remote_upload()
-rw-r--r-- | src/remote.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/remote.c b/src/remote.c index 5ba7735ae..93c65281b 100644 --- a/src/remote.c +++ b/src/remote.c @@ -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) 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; |