浏览代码

chore: add local git clean up command

Cat 3 年之前
父节点
当前提交
ae037f33db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      update.sh

+ 1 - 1
update.sh

@@ -3,9 +3,9 @@
 [ $(id -u) != "0" ] && { echo "Error: You must be root to run this script!"; exit 1; }
 
 do_upgrade_sspanel(){
-    git fetch --all
     git reset --hard origin/dev
     git pull
+    git fetch --prune --prune-tags
     rm -r storage/framework/smarty/compile/*
     php composer.phar update
     php composer.phar selfupdate