Skip to content

A free, self-hostable news aggregator…

Better git fetch (#2626)

Alexandre Alapetite2495172a0572
diff --git a/app/Controllers/updateController.php b/app/Controllers/updateController.php
index cc3aef9fd..c0c1ef1c8 100644
--- a/app/Controllers/updateController.php
+++ b/app/Controllers/updateController.php
@@ -23,7 +23,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
}
chdir($cwd);
$line = is_array($output) ? implode('; ', $output) : '' . $output;
- return strpos($line, '[behind') !== false;
+ return strpos($line, '[behind') !== false || strpos($line, '[ahead') !== false;
}
public static function gitPull() {