add git_path_buf helper function