moved RepoPath param to CheckCommits()