Skip to content

Clear the remote_ref_name buffer in git_push_update_tips()#4344

Merged
ethomson merged 1 commit intolibgit2:masterfrom
slavikus:fix-dirty-buffer-in-git-push-update-tips
Sep 12, 2017
Merged

Clear the remote_ref_name buffer in git_push_update_tips()#4344
ethomson merged 1 commit intolibgit2:masterfrom
slavikus:fix-dirty-buffer-in-git-push-update-tips

Conversation

@slavikus
Copy link
Copy Markdown
Contributor

If fetch_spec was a non-pattern, and it is not the first iteration of push_status vector, then git_refspec_transform() would result in the new value appended via git_buf_puts to the previous iteration value.

Forcibly clearing the buffer on each iteration to prevent this behavior.

If fetch_spec was a non-pattern, and it is not the first iteration of push_status vector, then git_refspec_transform would result in the new value appended via git_buf_puts to the previous iteration value.

Forcibly clearing the buffer on each iteration to prevent this behavior.
@ethomson
Copy link
Copy Markdown
Member

Thanks for the fix!

@ethomson ethomson merged commit e098b5f into libgit2:master Sep 12, 2017
@pks-t pks-t added the backport label Jan 11, 2018
@pks-t pks-t mentioned this pull request Jan 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants