</a>
</div>
</div>
+
+<h3 id="fork-check">Setup check</h3>
+<p>
+ You need to activate public clone URLs in your config file.
+ Otherwise forking onto remote systems will not work.
+</p>
+{% if publicGitUrl %}
+<div class="alert alert-success">
+ OK! A public git URL prefix is configured: <tt>{{publicGitUrl}}</tt>
+</div>
+{% else %}
+<div class="alert alert-error">
+ Error! No public git URL prefix configured.
+</div>
+{% endif %}
{% endblock %}
$sc->checkGit();
$sc->checkDatabase();
$sc->checkMimeTypeDetection();
+ $sc->checkRemoteForking();
return $sc->messages;
}
}
}
+ 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);
'help',
array(
'htmlhelper' => new HtmlHelper(),
+ 'publicGitUrl' => @$GLOBALS['phorkie']['cfg']['git']['public'],
)
);
?>