commit: add repository argument to set_commit_buffer