make sure repo exists