mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
update will now pull down the latest changes via git next up is schema upgrades between commits
This commit is contained in:
7
post.php
7
post.php
@@ -847,8 +847,13 @@ if(isset($_GET['download_database'])){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($_GET['update'])){
|
if(isset($_GET['update'])){
|
||||||
//Stuff will go here..
|
|
||||||
//also check to make sure someone has admin before running this function
|
//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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user