check the return value of git clone instead of its stderr content