merge paste creation and paste edit code
[phorkie.git] / www / fork.php
index 50049454606049b6b12c27cc6c037aae7e797ee4..6bec5f03bd0cba3f5cf76ee0416a666519fa2761 100644 (file)
@@ -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