remove debug statement
[phorkie.git] / src / phorkie / Repository / Setup.php
index f5c9730f77c259ec0bb2f888cf3d49ac487c08a2..43a85009acd8b956fad5a2fe19a8c3845883b783 100644 (file)
@@ -27,6 +27,18 @@ class Repository_Setup
 
         $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')