support different kind of git error
setup git in travis for testing