diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-04-03 22:27:31 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-04-03 22:27:31 +0200 |
| commit | 9e9f228abdf3f10d369b2699ffef29b59ff2bbf4 (patch) | |
| tree | db79e8144c1271b2c767705a5fb098c1fae14dde /src/phorkie/Repository/Post.php | |
| parent | a760f8955d0a4753eb48a7be5f5b242ca3b3f287 (diff) | |
| download | phorkie-9e9f228abdf3f10d369b2699ffef29b59ff2bbf4.tar.gz phorkie-9e9f228abdf3f10d369b2699ffef29b59ff2bbf4.zip | |
show public and private git urls if configured
Diffstat (limited to 'src/phorkie/Repository/Post.php')
| -rw-r--r-- | src/phorkie/Repository/Post.php | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |
