mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Run git clean
This commit is contained in:
parent
0b904d982f
commit
e22aff02fb
@ -121,6 +121,7 @@ exec("mkdir -p /root/pfsense/$branch");
|
||||
if(is_dir("$CODIR/pfSenseGITREPO/pfSenseGITREPO")) {
|
||||
echo "===> Fetching updates...\n";
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git fetch");
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git clean -f -f -x -d");
|
||||
if($branch == "master") {
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git reset --hard HEAD");
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git rebase origin");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user