aboutsummaryrefslogtreecommitdiff
path: root/www/fork.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/fork.php')
-rw-r--r--www/fork.php4
1 files changed, 4 insertions, 0 deletions
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