update will now pull down the latest changes via git next up is schema upgrades between commits

This commit is contained in:
johnnyq 2021-11-20 16:43:03 -05:00
parent 1551ea7c9b
commit 5aa02e346a
1 changed files with 6 additions and 1 deletions

View File

@ -847,8 +847,13 @@ if(isset($_GET['download_database'])){
}
if(isset($_GET['update'])){
//Stuff will go here..
//also check to make sure someone has admin before running this function
exec("git pull");
//git fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the master branch to what you just fetched. The --hard option changes all the files in your working tree to match the files in origin/master
//exec("git fetch --all");
//exec("git reset --hard origin/master");
}