git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use custom config file when it exists
[phorkie.git]
/
www
/
index.php
diff --git
a/www/index.php
b/www/index.php
index 8fc24052f54f6dc0c98bacb260583ff7c92fb8cf..044ac350dcf8979a566c19824d5cadbd1da22ca4 100644
(file)
--- a/
www/index.php
+++ b/
www/index.php
@@
-18,6
+18,9
@@
if (isset($_POST['file'])) {
$repo = $rs->createNew();
$vc = $repo->getVc();
$vc->initRepository();
$repo = $rs->createNew();
$vc = $repo->getVc();
$vc->initRepository();
+ foreach (glob($repo->repoDir . '/.git/hooks/*') as $hookfile) {
+ unlink($hookfile);
+ }
file_put_contents($repo->repoDir . '.git/description', $_POST['description']);
foreach ($_POST['file'] as $num => $arFile) {
file_put_contents($repo->repoDir . '.git/description', $_POST['description']);
foreach ($_POST['file'] as $num => $arFile) {