1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Expand "local working copy" conditional check in Diffusion

Summary: We don't care about any disk resources at all for non-hosted SVN repositories. See <https://github.com/facebook/phabricator/issues/428>.

Test Plan: Looked at a non-hosted SVN repo, saw no storage info.

Reviewers: btrahan, chad

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D7506
This commit is contained in:
epriestley 2013-11-05 10:01:44 -08:00
parent 71e6386a73
commit 5cc26f065d

View file

@ -726,6 +726,7 @@ final class DiffusionRepositoryEditMainController
->setNote($daemon_instructions)); ->setNote($daemon_instructions));
} }
if ($repository->usesLocalWorkingCopy()) {
$local_parent = dirname($repository->getLocalPath()); $local_parent = dirname($repository->getLocalPath());
if (Filesystem::pathExists($local_parent)) { if (Filesystem::pathExists($local_parent)) {
$view->addItem( $view->addItem(
@ -746,7 +747,6 @@ final class DiffusionRepositoryEditMainController
return $view; return $view;
} }
if ($repository->usesLocalWorkingCopy()) {
$local_path = $repository->getLocalPath(); $local_path = $repository->getLocalPath();
$message = idx($messages, PhabricatorRepositoryStatusMessage::TYPE_INIT); $message = idx($messages, PhabricatorRepositoryStatusMessage::TYPE_INIT);
if ($message) { if ($message) {