mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Handle 1.2 correctly
This commit is contained in:
parent
6ca212bb58
commit
a3e4524d2f
@ -124,12 +124,7 @@ if(is_dir("$CODIR/pfSenseGITREPO")) {
|
||||
if($branch == "master") {
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout master");
|
||||
} else {
|
||||
$current_branch=`git branch | grep $branch`;
|
||||
if($current_branch == "") {
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout -b $branch origin/$branch");
|
||||
} else {
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout $branch");
|
||||
}
|
||||
exec("cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout -b $branch origin/$branch");
|
||||
}
|
||||
|
||||
exec("mkdir -p /tmp/lighttpd/cache/compress/");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user