Fix update git version (#6513)

fix https://github.com/FreshRSS/FreshRSS/issues/6512
Compatibility with git older than 2.37
This commit is contained in:
Alexandre Alapetite
2024-05-29 23:01:14 +02:00
committed by GitHub
parent 848c8195dd
commit aa2be914d7

View File

@@ -20,7 +20,7 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
'Please git pull manually!');
}
exec('git -v', $output, $return);
exec('git --version', $output, $return);
if ($return != 0) {
throw new Minz_Exception("Error {$return} git not found: Please update manually!");
}