check if set working dir exists and repo init has been run