updating repository before embarking on cleaning