Permalink
Browse files

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
  • Loading branch information...
1 parent 81db220 commit f22d9131c6b3a99dcf73c64828137a168f7d93d6 @epriestley epriestley committed May 11, 2012
Showing with 1 addition and 19 deletions.
  1. +1 −19 scripts/daemon/phabricator_daemon_launcher.php
@@ -88,29 +88,11 @@ function must_have_extension($ext) {
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 {

0 comments on commit f22d913

Please sign in to comment.