replace strbuf_addstr(git_path()) with git_path_buf()