Răsfoiți Sursa

chore: add local git clean up command

Cat 3 ani în urmă
părinte
comite
ae037f33db
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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