HomePhabricator

Try switching to the branch of the same name, instead of detached head

Description

Try switching to the branch of the same name, instead of detached head

Summary:
Landing from a branch that directly tracks origin/master places one in
a detached HEAD state. Instead, examine if there is a local branch of
the name that we landed onto, that also tracks the upstream; if so,
switch to that.

Test Plan:
Made a branch via git checkout -b testing origin/master
and tried to arc land

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

Maniphest Tasks: T9723

Differential Revision: https://secure.phabricator.com/D14420

Details

Provenance
alexmvAuthored on
alexmvPushed on Nov 20 2015, 6:58 PM
Reviewer
Blessed Reviewers
Differential Revision
D14420: Try switching to the branch of the same name, instead of detached head
Parents
rARC2eada58960e5: Fix cppcheck linter test case
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8959
Build 10517: Run Core Tests