Fix bug #31: forked pastes cannot be remote forked
[phorkie.git] / src / phorkie / Repository / Post.php
index 90304bb602af8340df1fd0f4f205cae9e357cbfc..fe6858bed2e55932e5d9d7892aa390cc76ba9bb3 100644 (file)
@@ -141,6 +141,7 @@ class Repository_Post
                 ->execute();
             //FIXME: git needs ref BEFORE add
             //quick hack until http://pear.php.net/bugs/bug.php?id=19605 is fixed
+            //also waiting for https://pear.php.net/bugs/bug.php?id=19623
             $vc->getCommand('notes --ref=identity add')
                 ->setOption('force')
                 ->setOption('message', "$notes")
@@ -189,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;
     }