Specify GIT_DIR when shelling out to git.

Just in case. This avoids any uncomfortable situations where git-dir we think we are using is not the git-dir we are using.
Explicitly warn upon failing to clone a git repo.