@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.

Save absolute path when linting git-svn repo

Test Plan: Dumped `$this->svnRoot` in git-svn repo.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4255

vrana 3452315c 800be357

+8
+8
src/applications/diffusion/DiffusionLintSaveRunner.php
··· 38 38 public function run($dir) { 39 39 $working_copy = ArcanistWorkingCopyIdentity::newFromPath($dir); 40 40 $api = ArcanistRepositoryAPI::newAPIFromWorkingCopyIdentity($working_copy); 41 + 41 42 $this->svnRoot = id(new PhutilURI($api->getSourceControlPath()))->getPath(); 43 + if ($api instanceof ArcanistGitAPI) { 44 + $svn_fetch = $api->getGitConfig('svn-remote.svn.fetch'); 45 + list($this->svnRoot) = explode(':', $svn_fetch); 46 + if ($this->svnRoot != '') { 47 + $this->svnRoot = '/' . $this->svnRoot; 48 + } 49 + } 42 50 43 51 $project_id = $working_copy->getProjectID(); 44 52 $project = id(new PhabricatorRepositoryArcanistProject())