Commit e098b5f5 by Edward Thomson Committed by GitHub

Merge pull request #4344 from slavikus/fix-dirty-buffer-in-git-push-update-tips

Clear the remote_ref_name buffer in git_push_update_tips()
parents 71a8204d b34fc3fd
......@@ -178,6 +178,9 @@ int git_push_update_tips(git_push *push, const git_remote_callbacks *callbacks)
if (!fetch_spec)
continue;
/* Clear the buffer which can be dirty from previous iteration */
git_buf_clear(&remote_ref_name);
if ((error = git_refspec_transform(&remote_ref_name, fetch_spec, status->ref)) < 0)
goto on_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