@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 the script that saves lint for a repo into the database and updates diffusion.

Summary:
It appears a change to the way the configuration was loaded into ArcanistRepositoryAPI in rARCa2285b2b broke the save_lint script.
This updates the DiffusionLintSaveRunner to use the configuration correctly, allowing the linter to run

Test Plan: cd /your/project; ../../../path/to/phabricator/scripts/repository/save_lint.php

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: aran, epriestley, Korvin

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

authored by

Michael Peters and committed by
epriestley
8b6c86e2 2dbfb1d5

+4 -1
+4 -1
src/applications/diffusion/DiffusionLintSaveRunner.php
··· 44 44 45 45 public function run($dir) { 46 46 $working_copy = ArcanistWorkingCopyIdentity::newFromPath($dir); 47 - $api = ArcanistRepositoryAPI::newAPIFromWorkingCopyIdentity($working_copy); 47 + $configuration_manager = new ArcanistConfigurationManager(); 48 + $configuration_manager->setWorkingCopyIdentity($working_copy); 49 + $api = ArcanistRepositoryAPI::newAPIFromConfigurationManager( 50 + $configuration_manager); 48 51 49 52 $this->svnRoot = id(new PhutilURI($api->getSourceControlPath()))->getPath(); 50 53 if ($api instanceof ArcanistGitAPI) {