Skip to content

Commit c00e19c

Browse files
author
wushuiyong
committed
优化pull和对外邮件组
1 parent ea98e8b commit c00e19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

console/WalleController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class WalleController extends Controller {
2929
* checkout the current version 查看版本
3030
*/
3131
public function actionIndex() {
32-
echo sprintf("\n\033[32mwalle-web %s (built: %s)\033[0m\nCopyright (c) 2015-2016 The walle-web Group.\nGet Help from [email protected]. Enjoy It.\n\n",
32+
printf("\n\033[32mwalle-web %s (built: %s)\033[0m\nCopyright (c) 2015-2016 The walle-web Group.\nGet Help from [email protected]. Enjoy It.\n\n",
3333
Yii::$app->params['version'], Yii::$app->params['buildTime']);
3434
}
3535

@@ -45,7 +45,7 @@ public function actionUpgrade() {
4545
$commander->runLocalCommand('/usr/bin/env git stash save');
4646
// pull code 更新代码
4747
echo 'pull code 更新代码: git pull ...', PHP_EOL;
48-
$commander->runLocalCommand('/usr/bin/env git pull');
48+
$commander->runLocalCommand('/usr/bin/env git pull --rebase');
4949
// stash pop local change 弹出暂存本地修改
5050
echo 'stash pop local change 弹出暂存本地修改: git stash pop ...', PHP_EOL;
5151
$commander->runLocalCommand('/usr/bin/env git stash pop');

0 commit comments

Comments
 (0)