commit: add repository argument to parse_commit_buffer