summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-01-18 15:38:27 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-01-18 15:38:27 -0500
commit4c1ed4a7dc061f61288c4aea914ada55e772f37d (patch)
tree67d530d4e014dff6817572f28230b4d856dfec83
parenta7592ba0555e2b5f802fa049c846ae3c75491618 (diff)
downloadpfsense-4c1ed4a7dc061f61288c4aea914ada55e772f37d.zip
pfsense-4c1ed4a7dc061f61288c4aea914ada55e772f37d.tar.gz
Handle git branches correctly (missing half the command)
-rw-r--r--etc/phpshellsessions/cvssync6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 9956e00..24752db 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -101,7 +101,11 @@ if(is_dir("$CODIR/master/mainline"))
exec("cd $CODIR/master/mainline && git fetch");
else
exec("cd $CODIR && git clone $GIT_REPO pfSense");
-exec("cd $CODIR/master/mainline && git checkout $BRANCHTAG");
+
+if($branch == "master")
+ exec("cd $CODIR/master/mainline && git checkout");
+else
+ exec("cd $CODIR/master/mainline && git checkout -b $BRANCHTAG origin/$BRANCHTAG");
exec("mkdir -p /tmp/lighttpd/cache/compress/");
OpenPOWER on IntegriCloud