If `git_buf_puts()` fails, it will already have called `giterr_set_oom()` so I don't think you need this (or most of the other calls to this below).