Split --tracking-branch option into new group; pass it to rbt land
Review Request #8337 — Created Aug. 18, 2016 and submitted
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.
Tool: Pyflakes Processed Files: rbtools/commands/land.py rbtools/commands/post.py rbtools/commands/stamp.py rbtools/commands/__init__.py rbtools/commands/diff.py Tool: PEP8 Style Checker Processed Files: rbtools/commands/land.py rbtools/commands/post.py rbtools/commands/stamp.py rbtools/commands/__init__.py rbtools/commands/diff.py