From 2a65b3020e1c556f843d3c7f94e2a51bc008a2a8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 23 Nov 2013 06:30:37 -0800 Subject: [PATCH] Fix error creating repository from file:/// location, due to uninitialized variable. Summary: This was broken in rP51fb1ca16d7f. Test Plan: Imported a repository with file:/// location, it worked. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7636 --- .../controller/DiffusionRepositoryCreateController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applications/diffusion/controller/DiffusionRepositoryCreateController.php b/src/applications/diffusion/controller/DiffusionRepositoryCreateController.php index 6bb3b0f70c..f38ddffc26 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryCreateController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryCreateController.php @@ -581,6 +581,8 @@ final class DiffusionRepositoryCreateController 'credential'); } else if ($proto == 'file') { $c_credential->setHidden(true); + $provides_type = null; + $page->addRemarkupInstructions( pht( 'You do not need to configure any credentials for repositories '.