Update rake task to exclude ref to private repo commits