Fixed git error outputs (such as fatal errors) not being handled properly.