Part of #35: store owner in git configuration
[phorkie.git] / src / phorkie / Repository / Setup.php
index e26338bf9a7656065f2e9696e445ab1b6347bd04..f5c9730f77c259ec0bb2f888cf3d49ac487c08a2 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();
     }
 
 }