Run git clean

This commit is contained in:
sullrich 2009-12-04 21:06:01 -05:00
parent 0b904d982f
commit e22aff02fb

View File

@ -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");