X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/f7101de3d20753dafe8e02f4e43112e2e208b8d7..4d3b1690a86631b4b1abc74dfa4c4e5bde8faf10:/www/fork.php diff --git a/www/fork.php b/www/fork.php index 5004945..6bec5f0 100644 --- a/www/fork.php +++ b/www/fork.php @@ -14,6 +14,10 @@ $new->getVc()->getCommand('clone') ->addArgument($new->repoDir) ->execute(); \copy($repo->repoDir . '/.git/description', $new->repoDir . '/.git/description'); +foreach (glob($new->repoDir . '/.git/hooks/*') as $hookfile) { + unlink($hookfile); +} + //FIXME: where to put fork source link? redirect($new->getLink('display')); ?> \ No newline at end of file