summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/phpshellsessions/gitsync8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 1458625..4ce8d27 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -130,8 +130,12 @@ if(is_dir("$CODIR/pfSenseGITREPO/pfSenseGITREPO")) {
run_cmds($git_cmd);
} else {
$git_cmd = array(
- "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git reset HEAD --hard",
- "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git rebase origin/$branch"
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git reset HEAD --hard",
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout master",
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git branch -D $branch",
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git fetch",
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git rebase origin",
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout -b $branch origin/$branch"
);
}
run_cmds($git_cmd);
OpenPOWER on IntegriCloud