1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32: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:
epriestley 2015-02-25 13:09:00 -08:00
parent dd59423d56
commit d8182cf55d

View file

@ -75,8 +75,10 @@ EOTEXT
public function run() {
$console = PhutilConsole::getConsole();
$this->printRepositorySection();
$console->writeOut("\n");
if (!$this->getArgument('show-base')) {
$this->printRepositorySection();
$console->writeOut("\n");
}
$repository_api = $this->getRepositoryAPI();