fix: [feed] shell_exec don't throw Exception

pull/5052/head
Jakub Onderka 2019-08-24 10:52:47 +02:00
parent 0396cc5cb3
commit 0ddfbc9ccf
1 changed files with 2 additions and 5 deletions

View File

@ -514,11 +514,8 @@ class Feed extends AppModel
{
$version = $this->checkMISPVersion();
$version = implode('.', $version);
try {
$commit = trim(shell_exec('git log --pretty="%H" -n1 HEAD'));
} catch (Exception $e) {
$commit = false;
}
$commit = trim(shell_exec('git log --pretty="%H" -n1 HEAD'));
$result = array(
'header' => array(
'Accept' => 'application/json',