Hm. It looks like `git_branch_upstream__name` makes sure that the upstream branch has to be a local branch, else it raises an error.