Browse Source

Fix update git version (#6513)

fix https://github.com/FreshRSS/FreshRSS/issues/6512
Compatibility with git older than 2.37
Alexandre Alapetite 1 year ago
parent
commit
aa2be914d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Controllers/updateController.php

+ 1 - 1
app/Controllers/updateController.php

@@ -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!");
 		}