show public and private git urls if configured
[phorkie.git] / src / phorkie / Repository / Post.php
index 627aa1fae53d83335a713e6281eef48873b743a7..828dbadb16e897c8c36833b4d9a82cd968cc7778 100644 (file)
@@ -87,9 +87,13 @@ class Repository_Post
         $repo = $rs->createNew();
         $vc = $repo->getVc();
         $vc->initRepository();
         $repo = $rs->createNew();
         $vc = $repo->getVc();
         $vc->initRepository();
+
         foreach (glob($repo->repoDir . '/.git/hooks/*') as $hookfile) {
             unlink($hookfile);
         }
         foreach (glob($repo->repoDir . '/.git/hooks/*') as $hookfile) {
             unlink($hookfile);
         }
+
+        touch($repo->repoDir . '/.git/git-daemon-export-ok');
+
         return $repo;
     }
 
         return $repo;
     }