git.cweiske.de
/
phorkie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
089fcac
)
commit as anonymous
author
Christian Weiske
<cweiske@cweiske.de>
Mon, 26 Mar 2012 20:53:23 +0000
(22:53 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Mon, 26 Mar 2012 20:53:23 +0000
(22:53 +0200)
www/index.php
patch
|
blob
|
history
diff --git
a/www/index.php
b/www/index.php
index 31aef7d0d35257db0c5dd90a4f082a097d49237d..5bda39084f0d0a7f2b8f20ca96e8a704714fc88a 100644
(file)
--- 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
$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']);
$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')
}
$command = $vc->getCommand('commit')
->setOption('message', 'initial paste')
+ ->setOption('author', 'Anonymous <anonymous@phorkie>')
->execute();
//redirect to phork
redirect($n);
->execute();
//redirect to phork
redirect($n);