]> khamidou — GitHub mirrors - arcanist.git/commit
Ignore detached git branches.
authorJoshua Spence <josh@joshuaspence.com>
Sun, 9 Mar 2014 15:04:33 +0000 (08:04 -0700)
committerepriestley <git@epriestley.com>
Sun, 9 Mar 2014 15:04:33 +0000 (08:04 -0700)
commita2706f65394497404d09dab6f668c7d3699a2df6
treea83201769a67b8d00714f73e1eac04399930c6cc
parenta90a72c648ac11839bd550610021eca6253a2305
Ignore detached git branches.

Summary:
Fixes T4559.

It looks like the code currently (at least partially) handles this by checking for `(no branch)`. I suspect that the behaviour of `git` has changed (I am running version 1.9.0) because I haven't figured out what state to be in to cause `git` to output `(no branch)`.

Test Plan: Ran `arc branch` when on a detached branch.

Reviewers: #blessed_reviewers, epriestley

CC: Korvin, epriestley, aran
Maniphest Tasks: T4559

Differential Revision: https://secure.phabricator.com/D8466
src/repository/api/ArcanistGitAPI.php