push.c
16.1 KB
-
Clear the remote_ref_name buffer in git_push_update_tips() · b34fc3fd
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.
Slava Karpenko committed