1
0

small fixes in selftest

This commit is contained in:
2020-01-20 17:59:16 +01:00
parent 9c8e61b203
commit 2fc64df38e
2 changed files with 3 additions and 3 deletions

View File

@@ -416,7 +416,7 @@ class SelfTest implements IWebsiteModule
'exception' => null,
];
$r = exec('git rev-parse --abbrev-ref HEAD');
$r = exec('git status 2>&1');
$ok = (strpos($r, 'Your branch is up to date with') !== false) && (strpos($r, 'nothing to commit, working tree clean') !== false);
if (!$ok)
@@ -641,4 +641,4 @@ class SelfTest implements IWebsiteModule
{
return ['result'=>'ok', 'message' => ''];
}
}
}