clear well the dag when changing repo