Fix bug #31: forked pastes cannot be remote forked
[phorkie.git] / src / phorkie / Forker.php
index 7473f1633aad1acf34b50c667618cf5b4772205a..157cb5e3e435a6a78da4bb087469fb3de9fa2f2f 100644 (file)
@@ -48,9 +48,8 @@ class Forker
             throw $e;
         }
 
-        foreach (\glob($new->gitDir . '/hooks/*') as $hookfile) {
-            \unlink($hookfile);
-        }
+        $rs = new Repository_Setup($new);
+        $rs->afterInit();
 
         return $new;
     }