updating repo before maybe clear