mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +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,10 +160,12 @@ EOTEXT
|
|||
$this->cleanupBranch();
|
||||
}
|
||||
|
||||
// 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) {
|
||||
$this->restoreBranch();
|
||||
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->keepBranch || $this->oldBranch != $this->branch) {
|
||||
$this->restoreBranch();
|
||||
}
|
||||
}
|
||||
|
||||
echo "Done.\n";
|
||||
|
|
Loading…
Reference in a new issue