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.
information-system/please_dont_delete_this_fil...

19 lines
433 B
PHP

<?php
header("Cache-Control: no-cache");
$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('d:\.ssh\Git\bin\sh.exe -c "export HOME=/d;git pull" 2>&1', $out, $status);
}
if (0 === $status) {
print("Done");
} else {
header("Status: 404");
echo "Command failed with status: $status <br/>";
print_r($out);
}