$vc = $this->repo->getVc();
+ file_put_contents(
+ $this->repo->gitDir . '/hooks/post-update',
+ <<<CDE
+#!/bin/sh
+# Hook script to prepare a packed repository for use over dumb transports.
+
+exec git update-server-info
+
+CDE
+ );
+ chmod($this->repo->gitDir . '/hooks/post-update', 0755);
+
//keep track of owner
$vc->getCommand('config')
- ->addArgument('owner.name')
+ ->addArgument('user.name')
->addArgument($_SESSION['name'])
->execute();
$vc->getCommand('config')
- ->addArgument('owner.email')
+ ->addArgument('user.email')
->addArgument($_SESSION['email'])
->execute();
}