removing references to subrepos