mirror of https://github.com/itflow-org/itflow
update will now pull down the latest changes via git next up is schema upgrades between commits
This commit is contained in:
parent
1551ea7c9b
commit
5aa02e346a
7
post.php
7
post.php
|
|
@ -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");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue