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

Avoid fatal error if there's no Arcanist project or repository

Test Plan: Display diff without repository

Reviewers: nh, epriestley

Reviewed By: epriestley

CC: aran, Koolvin

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

vrana ec068ff4 fd3d510d

+6
+3
src/applications/differential/field/specification/revisionstatus/DifferentialRevisionStatusFieldSpecification.php
··· 35 35 $info = null; 36 36 $local_vcs = $diff->getSourceControlSystem(); 37 37 $backing_vcs = $diff->getBackingVersionControlSystem(); 38 + if (!$backing_vcs) { 39 + $backing_vcs = $local_vcs; 40 + } 38 41 39 42 if ($status == ArcanistDifferentialRevisionStatus::ACCEPTED) { 40 43 if ($local_vcs == $backing_vcs) {
+3
src/applications/differential/storage/diff/DifferentialDiff.php
··· 91 91 return null; 92 92 } 93 93 $repository = $arcanist_project->loadRepository(); 94 + if (!$repository) { 95 + return null; 96 + } 94 97 return $repository->getVersionControlSystem(); 95 98 } 96 99