From 155657f95092b039cfc6ec3eb29064ceedd6947f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 20 Jan 2009 21:09:20 -0500 Subject: [PATCH] Remove mainline and HEAD previous checkouts (CVS) --- etc/phpshellsessions/cvssync | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 8f36a452fe..bbf139e953 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -25,9 +25,18 @@ if(!file_exists("/usr/local/bin/git")) { system("chmod a+rx /usr/local/bin/git"); } +# Remove mainline if exists (older) if(is_dir("/root/pfsense/mainline")) exec("rm -rf /root/pfsense/mainline"); +# Remove RELENG_1_2 if exists (older) +if(is_dir("/root/pfsense/RELENG_1_2")) + exec("rm -rf /root/pfsense/RELENG_1_2"); + +# Remove HEAD if exists (older) +if(is_dir("/root/pfsense/HEAD")) + exec("rm -rf /root/pfsense/HEAD"); + /* NOTE: Set branches here */ $branches = array( "master" => "2.0 development branch",