You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asiahighlights.com/please_dont_delete_this_fil...

17 lines
381 B
PHTML

9 years ago
<?php
$branch = $_GET['branch'];
if($branch=='develop'){
exec('e:\usr\Git\bin\sh.exe -c "export HOME=/e/usr;git pull" 2>&1', $out, $status);
}
if($branch=='master'){
exec('e:\.ssh\Git\bin\sh.exe -c "export HOME=/e/.ssh;git pull" 2>&1', $out, $status);
}
if (0 === $status) {
print("Done");
} else {
header("Status: 404");
echo "Command failed with status: $status";
}