Check RuntimeOption::RepoCommit in Repo::commitUnit instead of callers