Make sync_local_repository async