git-state.sh: Handle lack of remote branch