Fix bug with stale repos and commit-based key exclusions