projects
/
pharext
/
replicator.pharext.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
2dae538
)
add gitweb.description
author
Michael Wallner
<mike@php.net>
Thu, 28 May 2015 13:29:26 +0000
(15:29 +0200)
committer
Michael Wallner
<mike@php.net>
Thu, 28 May 2015 13:29:26 +0000
(15:29 +0200)
public/mirror.php
patch
|
blob
|
history
diff --git
a/public/mirror.php
b/public/mirror.php
index 753a11411b128660820f91a062a546649a62d829..4040d879c7746bc6ffd81c7ee4d5a36f35a037e2 100644
(file)
--- a/
public/mirror.php
+++ b/
public/mirror.php
@@
-58,7
+58,9
@@
switch ($evt) {
}
} elseif (mkdir($path, 0755, true) && chdir($path)) {
$source = escapeshellarg($json->repository->clone_url);
}
} elseif (mkdir($path, 0755, true) && chdir($path)) {
$source = escapeshellarg($json->repository->clone_url);
+ $description = escapeshellarg($json->repository->descrption);
passthru("git clone --mirror $source . 2>&1", $rv);
passthru("git clone --mirror $source . 2>&1", $rv);
+ passthru("git config gitweb.description $description 2>&1");
if ($rv == 0) {
$response->setResponseCode(200);
}
if ($rv == 0) {
$response->setResponseCode(200);
}