NOBUG: added handling for failed clone operation

Adds a short snippet of code to check the outcome of the git clone operation.
Presently if the clone fails it just carries on, the cd gitmirror fails and then it proceeds to mess up your mdlrelease repository.
I fell for this (has been a long while since I've run install), made the fix, tested it worked and then successfully installed later.