Fix bug #31: forked pastes cannot be remote forked
[phorkie.git] / src / phorkie / Repository / Post.php
index 1a30b476dcecb30a203be2c78dafcfa2341e817b..fe6858bed2e55932e5d9d7892aa390cc76ba9bb3 100644 (file)
@@ -190,11 +190,8 @@ class Repository_Post
             ->addArgument($repo->workDir)
             ->execute();
 
-        foreach (glob($repo->gitDir . '/hooks/*') as $hookfile) {
-            unlink($hookfile);
-        }
-
-        touch($repo->gitDir . '/git-daemon-export-ok');
+        $rs = new Repository_Setup($repo);
+        $rs->afterInit();
 
         return $repo;
     }