mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 23:02:41 +01:00
Restore kept branch after landing
Test Plan: Ran it separately. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4846
This commit is contained in:
parent
2c2cb3b78a
commit
46dfc64337
1 changed files with 6 additions and 4 deletions
|
@ -160,11 +160,13 @@ EOTEXT
|
|||
$this->cleanupBranch();
|
||||
}
|
||||
|
||||
if ($this->oldBranch != $this->onto) {
|
||||
// If we were on some branch A and the user ran "arc land B",
|
||||
// switch back to A.
|
||||
if ($this->oldBranch != $this->branch && $this->oldBranch != $this->onto) {
|
||||
if ($this->keepBranch || $this->oldBranch != $this->branch) {
|
||||
$this->restoreBranch();
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue