* Add conditional check: if the git repo directory is newly created, we clone. * Add tests Fixes #641