X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/bfa1501efa1a49893208c794ea262a075b13fc1d..b8ec7e50b61c241d84a7b0e2c7be6c369a8c0dd2:/www/index.php diff --git a/www/index.php b/www/index.php index 8fc2405..044ac35 100644 --- a/www/index.php +++ b/www/index.php @@ -18,6 +18,9 @@ if (isset($_POST['file'])) { $repo = $rs->createNew(); $vc = $repo->getVc(); $vc->initRepository(); + foreach (glob($repo->repoDir . '/.git/hooks/*') as $hookfile) { + unlink($hookfile); + } file_put_contents($repo->repoDir . '.git/description', $_POST['description']); foreach ($_POST['file'] as $num => $arFile) {