like the commit message says, it's a check for a configured upstream, which avoids the:

    zsh: bad math expression: operand expected at `> 0'

error that other people were seeing.

I will add a comment and remove the `--symbolic-full-name` option which is unnecessary.