calculated git versions of project & system, linked them hardcoded
This commit is contained in:
parent
c4d0082a69
commit
8fafd737a4
@ -12,12 +12,14 @@ class saimod_sys_git extends \SYSTEM\SAI\SaiModule {
|
|||||||
$result = array('git_project' => '', 'git_system' => '');
|
$result = array('git_project' => '', 'git_system' => '');
|
||||||
try{
|
try{
|
||||||
$repo = \SYSTEM\GIT\Git::open(\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH));
|
$repo = \SYSTEM\GIT\Git::open(\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH));
|
||||||
|
$result['git_project'] = '<a href="http://www.mojotrollz.eu/git/hosting/commit/'.$repo->run('rev-parse HEAD').'" target="_blank">'.$repo->run('rev-parse --short HEAD').'</a>';
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
$result['git_project'] = $ex->getMessage();
|
$result['git_project'] = $ex->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
try{
|
try{
|
||||||
$repo = \SYSTEM\GIT\Git::open(\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH).\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL));
|
$repo = \SYSTEM\GIT\Git::open(\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEPATH).\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_SYSTEMPATHREL));
|
||||||
|
$result['git_system'] = '<a href="http://www.mojotrollz.eu/git/system/commit/'.$repo->run('rev-parse HEAD').'" target="_blank">'.$repo->run('rev-parse --short HEAD').'</a>';
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
$result['git_system'] = $ex->getMessage();
|
$result['git_system'] = $ex->getMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user