E-42/post-receive.php

10 lines
173 B
PHP
Raw Permalink Normal View History

2022-08-13 02:19:26 +01:00
<?php
// check for POST request
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
die;
}
// success
var_dump(shell_exec('git fetch origin && git reset --hard origin/master'));