1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 23:02:42 +01:00

Swap "-R" and "serve" argument order for Mercurial

Summary: See <https://discourse.phabricator-community.org/t/unable-to-use-current-mercurial-on-debian-stretch/391/13>. I missed that `-R` is order-sensitive.

Test Plan: Verified both orders work on 3.5.2.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D18616
This commit is contained in:
epriestley 2017-09-15 12:16:58 -07:00
parent 49b7181780
commit b352cacdd9

View file

@ -769,7 +769,7 @@ final class DiffusionServeController extends DiffusionController {
} }
$command = csprintf( $command = csprintf(
'%s serve -R %s --stdio', '%s -R %s serve --stdio',
$bin, $bin,
$repository->getLocalPath()); $repository->getLocalPath());
$command = PhabricatorDaemon::sudoCommandAsDaemonUser($command); $command = PhabricatorDaemon::sudoCommandAsDaemonUser($command);