This command works to get the files and compile them:
git clone a-valid-git-url
for example:
git clone git://cfdem.git.sour
In my case, was an environment variable GIT_DIR, which I added to access faster.
GIT_DIR
This also broke all my local repos in SourceTree :(