fix getCommits