Emptying the repo before updating