aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-03-26 22:53:23 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-03-26 22:53:23 +0200
commit430bf4d90848273799f595168b89932270122d46 (patch)
treef900421f0656d5439d6f7a95d72624f17cbee2f7
parent089fcac67ae3c3e83e2c330498d211e6b7693534 (diff)
downloadphorkie-430bf4d90848273799f595168b89932270122d46.tar.gz
phorkie-430bf4d90848273799f595168b89932270122d46.zip
commit as anonymous
-rw-r--r--www/index.php3
1 files changed, 2 insertions, 1 deletions
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 <anonymous@phorkie>')
->execute();
//redirect to phork
redirect($n);