git.el: Better handling of subprocess errors.