X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/a760f8955d0a4753eb48a7be5f5b242ca3b3f287..9e9f228abdf3f10d369b2699ffef29b59ff2bbf4:/src/phorkie/Repository/Post.php diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index 627aa1f..828dbad 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -87,9 +87,13 @@ class Repository_Post $repo = $rs->createNew(); $vc = $repo->getVc(); $vc->initRepository(); + foreach (glob($repo->repoDir . '/.git/hooks/*') as $hookfile) { unlink($hookfile); } + + touch($repo->repoDir . '/.git/git-daemon-export-ok'); + return $repo; }