detect if a repo is clean or dirty
working out the vcsery