Commit cf6b6303 authored by 0x010C's avatar 0x010C

Issue #23 : Execution du changement de branche

parent d1614969
......@@ -104,6 +104,11 @@ if ( $_REQUEST["action"] == "refreshdbscript" && $GLOBALS["svalid_call"] )
}
}
}
if ( $_REQUEST["action"] == "branch" && $GLOBALS["svalid_call"] )
{
@exec("git fetch");
@exec("git checkout ".htmlspecialchars_decode($_REQUEST["selected_branch"]), $output);
}
$cts->add(new tabshead($tabs,$_REQUEST["view"]));
$cts->add_paragraph("Révision en production : ".get_rev());
......@@ -116,6 +121,8 @@ if ( $Ok )
$cts->add_paragraph("Script de post commit modifié");
elseif( $_REQUEST["action"] == "refreshdbscript" )
$cts->add_paragraph("Script de refresh modifié");
else if( $_REQUEST["action"] == "branch" )
$cts->add_paragraph("La branch de taiste a bien été modifié");
}
if($_REQUEST["view"]=="script")
......@@ -179,7 +186,7 @@ else if ($_REQUEST["view"] == "branch")
{
if ($GLOBALS["taiste"])
{
exec("git branch", $output);
@exec("git branch", $output);
$branches = array();
foreach($output as $line)
{
......@@ -195,7 +202,7 @@ else if ($_REQUEST["view"] == "branch")
$cts->add($frm,true);
}
else
$cts->add_paragraph("<b>Passez sur taiste pour pouvoir changer la branche de taiste.</b>");
$cts->add_paragraph("<b>Il faut être sur taiste pour pouvoir changer la branche de taiste.</b>");
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment