From 8d29b8e073c9a3795ad7ededf4cb5e8683102162 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 1 Oct 2012 22:40:24 +0200 Subject: Fix bug #31: forked pastes cannot be remote forked --- src/phorkie/Repository/Post.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/phorkie/Repository/Post.php') diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index 1a30b47..fe6858b 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -190,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; } -- cgit v1.2.3