mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-31 06:28:13 +02:00
Fix Mercurial unable to authenticate with HTTP when pulling
Summary: As described in T7959, it looks like Diffusion does not provide Mercurial the required HTTP credentials when pulling from an external repository. Test Plan: Add an external Mercurial repository to Diffusion, that requires HTTP authentication. A private BitBucket repository for example. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley Projects: #mercurial, #diffusion Differential Revision: https://secure.phabricator.com/D14092
This commit is contained in:
parent
25786df3a1
commit
738cb1fa78
1 changed files with 2 additions and 1 deletions
|
@ -430,7 +430,8 @@ final class PhabricatorRepositoryPullEngine
|
||||||
$path = $repository->getLocalPath();
|
$path = $repository->getLocalPath();
|
||||||
|
|
||||||
// This is a local command, but needs credentials.
|
// This is a local command, but needs credentials.
|
||||||
$future = $repository->getRemoteCommandFuture('pull -u');
|
$remote = $repository->getRemoteURIEnvelope();
|
||||||
|
$future = $repository->getRemoteCommandFuture('pull -u -- %P', $remote);
|
||||||
$future->setCWD($path);
|
$future->setCWD($path);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue