update-server-info on git pushes and forks
[phorkie.git] / src / phorkie / Repository / Post.php
index c9f6a537ae1016698770382f25cd038f03db445e..5a450b1aa0b446f63c82de95ae568fd09864583d 100644 (file)
@@ -151,6 +151,10 @@ class Repository_Post
                 ->setOption('force')
                 ->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;
         }
 
@@ -232,7 +236,7 @@ class Repository_Post
     {
         $tmp = tempnam(sys_get_temp_dir(), 'phorkie-autodetect-');
         file_put_contents($tmp, $content);
-        $type = \MIME_Type_PlainDetect::autoDetect($tmp);
+        $type = Tool_MIME_Type_PlainDetect::autoDetect($tmp);
         unlink($tmp);
 
         return $this->findExtForType($type);