mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-09 16:32:39 +01: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();
|
||||
|
||||
// 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);
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue