Part of #35: store owner in git configuration
authorChristian Weiske <cweiske@cweiske.de>
Wed, 24 Oct 2012 19:46:45 +0000 (21:46 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 24 Oct 2012 19:46:45 +0000 (21:46 +0200)
src/phorkie/Repository/Setup.php

index e26338b..f5c9730 100644 (file)
@@ -24,6 +24,18 @@ class Repository_Setup
             unlink($hookfile);
         }
         touch($this->repo->gitDir . '/git-daemon-export-ok');
+
+        $vc = $this->repo->getVc();
+
+        //keep track of owner
+        $vc->getCommand('config')
+            ->addArgument('owner.name')
+            ->addArgument($_SESSION['name'])
+            ->execute();
+        $vc->getCommand('config')
+            ->addArgument('owner.email')
+            ->addArgument($_SESSION['email'])
+            ->execute();
     }
 
 }