X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/5f427dd38c8d47711ea73015076bb390761e05dd..c4b6c919fc57dec4334d10b6593a6b8faadc8052:/www/index.php diff --git a/www/index.php b/www/index.php index 31aef7d..5bda390 100644 --- a/www/index.php +++ b/www/index.php @@ -18,7 +18,7 @@ if (isset($_POST['file'])) { $n = count(glob($repoDir . '/*', GLOB_ONLYDIR)); $dir = $repoDir . '/' . $n . '/'; mkdir($dir, 0777);//FIXME - $vc = new VersionControl_Git($dir); + $vc = new \VersionControl_Git($dir); $vc->initRepository(); file_put_contents($dir . '.git/description', $_POST['description']); @@ -37,6 +37,7 @@ if (isset($_POST['file'])) { } $command = $vc->getCommand('commit') ->setOption('message', 'initial paste') + ->setOption('author', 'Anonymous ') ->execute(); //redirect to phork redirect($n);