fix git dir creation
authorChristian Weiske <cweiske@cweiske.de>
Fri, 13 Apr 2012 11:34:08 +0000 (13:34 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 13 Apr 2012 11:34:08 +0000 (13:34 +0200)
src/phorkie/Repository/Post.php

index 6ff8df60310e7428acc3c3d48260b03937a7e43a..f138491ac58735bc83eb61002aff455fdaf7e88c 100644 (file)
@@ -114,12 +114,11 @@ class Repository_Post
         $rs = new Repositories();
         $repo = $rs->createNew();
         $vc = $repo->getVc();
         $rs = new Repositories();
         $repo = $rs->createNew();
         $vc = $repo->getVc();
-        //$vc->initRepository();
         $vc->getCommand('init')
             //this should be setOption, but it fails with a = between name and value
             ->addArgument('--separate-git-dir')
         $vc->getCommand('init')
             //this should be setOption, but it fails with a = between name and value
             ->addArgument('--separate-git-dir')
-            ->addArgument($GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $repo->id)
-            ->addArgument($repo->workDir)
+            ->addArgument($GLOBALS['phorkie']['cfg']['gitdir'] . '/' . $repo->id . '.git')
+            ->addArgument($repo->workDir);
             ->execute();
 
         foreach (glob($repo->gitDir . '/hooks/*') as $hookfile) {
             ->execute();
 
         foreach (glob($repo->gitDir . '/hooks/*') as $hookfile) {