Why are you changing the working directory here, if you're passing the full workdir path to the repo on the next line anyway?