mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
Fix "phd repository-launch-readonly"
Summary: - Delete an unreachable block of code. - Pass "--" to terminate overseer args. Test Plan: Ran "phd repository-launch-readonly", didn't get argument errors out of the daemon. Reviewers: jungejason Reviewed By: jungejason CC: aran Differential Revision: https://secure.phabricator.com/D2456
This commit is contained in:
parent
81db220d1b
commit
f22d9131c6
1 changed files with 1 additions and 19 deletions
|
@ -88,29 +88,11 @@ switch ($command) {
|
|||
echo "Done.\n";
|
||||
break;
|
||||
|
||||
$need_launch = phd_load_tracked_repositories();
|
||||
if (!$need_launch) {
|
||||
echo "There are no repositories with tracking enabled.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
will_launch($control);
|
||||
|
||||
echo "Launching PullLocal daemon in readonly mode...\n";
|
||||
|
||||
$control->launchDaemon(
|
||||
'PhabricatorRepositoryPullLocalDaemon',
|
||||
array(
|
||||
'--no-discovery',
|
||||
));
|
||||
|
||||
echo "Done.\n";
|
||||
break;
|
||||
|
||||
case 'repository-launch-readonly':
|
||||
case 'repository-launch-master':
|
||||
if ($command == 'repository-launch-readonly') {
|
||||
$daemon_args = array(
|
||||
'--',
|
||||
'--no-discovery',
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue