Split --tracking-branch option into new group; pass it to rbt land
Review Request #8337 — Created Aug. 18, 2016 and submitted — Latest diff uploaded
The
--tracking-branchoption is required for determining the upstream
branch forrbt land, but it was not passed in due to it being in the
diff_optionsgroup. It is now in its own option group,
branch_options, which is passed to all commands that accepted
diff_optionsas well asrbt land.This fixes an issue where
repositories that don't use the default (e.g.,origin/masterfor git)
tracking branch would try to push to a non-existant branch.
With this patch applied, I am able to do
rbt land --pushwhen the
upstream branch is notorigin/master.