Просмотр исходного кода

Update git command (#2331)

I removed an unnecessary option and rewrote a short option
to use the long option. I find it's easier to understand
long options when you don't type them.
Alexis Degrugillier 7 лет назад
Родитель
Сommit
afd1a8784c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Controllers/updateController.php

+ 1 - 1
app/Controllers/updateController.php

@@ -32,7 +32,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
 		$output = array();
 		$return = 1;
 		try {
-			exec('git clean -f -d -f', $output, $return);
+			exec('git clean -d --force', $output, $return);
 			if ($return == 0) {
 				exec('git pull --ff-only', $output, $return);
 			} else {