Add error handling to GitSupport#git_command.