Converting to CPM_EnsureRepoIsCurrent.