Home GnuPG

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
Alex Vandiver <alexmv@dropbox.com>Authored on Nov 20 2015, 7:55 PM
Parents
rARC2eada58960e5: Fix cppcheck linter test case
Branches
Unknown
Tags
Unknown

Event Timeline

Alex Vandiver <alexmv@dropbox.com> committed rARCa77a77817a03: Try switching to the branch of the same name, instead of detached head (authored by Alex Vandiver <alexmv@dropbox.com>).Nov 20 2015, 7:58 PM