git-remote: exit with non-zero status after detecting errors.