@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+2 -1
+2 -1
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
··· 430 430 $path = $repository->getLocalPath(); 431 431 432 432 // This is a local command, but needs credentials. 433 - $future = $repository->getRemoteCommandFuture('pull -u'); 433 + $remote = $repository->getRemoteURIEnvelope(); 434 + $future = $repository->getRemoteCommandFuture('pull -u -- %P', $remote); 434 435 $future->setCWD($path); 435 436 436 437 try {