mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Make "arc which --show-base" work as expected
Summary: This is supposed to just print out the base revision, but actually prints out the repository section first. Test Plan: Ran `arc which`, `arc which --show-base`. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11888
This commit is contained in:
parent
dd59423d56
commit
d8182cf55d
1 changed files with 4 additions and 2 deletions
|
@ -75,8 +75,10 @@ EOTEXT
|
||||||
public function run() {
|
public function run() {
|
||||||
$console = PhutilConsole::getConsole();
|
$console = PhutilConsole::getConsole();
|
||||||
|
|
||||||
$this->printRepositorySection();
|
if (!$this->getArgument('show-base')) {
|
||||||
$console->writeOut("\n");
|
$this->printRepositorySection();
|
||||||
|
$console->writeOut("\n");
|
||||||
|
}
|
||||||
|
|
||||||
$repository_api = $this->getRepositoryAPI();
|
$repository_api = $this->getRepositoryAPI();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue