repository: move to use a git_buf for outputting strings Since we now export that type, we can avoid making the user guess a size.