You should take any `Rugged::Reference` here. `git_branch_set_upstream` will make sure it's a local branch for you, but it'll make the API more flexible (as you can pass both `Rugged::Reference` as well as `Rugged::Branch` instances).