From 9e9f228abdf3f10d369b2699ffef29b59ff2bbf4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 3 Apr 2012 22:27:31 +0200 Subject: show public and private git urls if configured --- src/phorkie/Repository/Post.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/phorkie/Repository') 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; } -- cgit v1.2.3