branch: reference is valid for set_upstream
branch: fix branch.upstream doc