$rs = new Repository_Setup($new);
$rs->afterInit();
+ //update info for dumb git HTTP transport
+ //the post-update hook should do that IMO, but does not somehow
+ $vc->getCommand('update-server-info')->execute();
+
return $new;
}
->setOption('message', "$notes")
->execute();
//update info for dumb git HTTP transport
+ //the post-update hook should do that IMO, but does not somehow
$vc->getCommand('update-server-info')->execute();
$bChanged = true;
$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.
+
+echo foo > /tmp/foo
+exec git update-server-info
+
+CDE
+ );
+ chmod($this->repo->gitDir . '/hooks/post-update', 0755);
+
//keep track of owner
$vc->getCommand('config')
->addArgument('owner.name')