From 430bf4d90848273799f595168b89932270122d46 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 26 Mar 2012 22:53:23 +0200 Subject: [PATCH] commit as anonymous --- www/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2