From 43b23197ffc3e1d08a1e08b09dbb31f06692d7ff Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 4 Jul 2014 08:28:22 +0200 Subject: warn about remote fork config in setup and help --- src/phorkie/SetupCheck.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/phorkie/SetupCheck.php b/src/phorkie/SetupCheck.php index c459e2a..69cffd8 100644 --- a/src/phorkie/SetupCheck.php +++ b/src/phorkie/SetupCheck.php @@ -39,6 +39,7 @@ class SetupCheck $sc->checkGit(); $sc->checkDatabase(); $sc->checkMimeTypeDetection(); + $sc->checkRemoteForking(); return $sc->messages; } @@ -133,6 +134,18 @@ class SetupCheck } } + public function checkRemoteForking() + { + if (!isset($GLOBALS['phorkie']['cfg']['git']['public']) + || $GLOBALS['phorkie']['cfg']['git']['public'] == '' + ) { + $this->fail( + 'No public git URL prefix configured.' + . ' Remote forking will not work' + ); + } + } + public function fail($msg) { $this->messages[] = array('error', $msg); -- cgit v1.2.3