Reduce calls to commits_in_repo