Check the repo directory is a git clone.