* Add conditional check: if the git repo directory is newly created, we clone. * Add tests Fixes #641
This refactors the code we're using to manage temporary git repositories into a utility package.