Skip to content

Commit

Permalink
Merge pull request #144 from meolu/optimize-staging
Browse files Browse the repository at this point in the history
优化pull和对外邮件组
  • Loading branch information
meolu committed Mar 20, 2016
2 parents ea98e8b + c00e19c commit 2955a88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/WalleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WalleController extends Controller {
* checkout the current version 查看版本
*/
public function actionIndex() {
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",
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",
Yii::$app->params['version'], Yii::$app->params['buildTime']);
}

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

0 comments on commit 2955a88

Please sign in to comment.