X-Git-Url: https://git.m6w6.name/?p=m6w6%2Freplicator;a=blobdiff_plain;f=public%2Fmirror.php;fp=public%2Fmirror.php;h=4040d879c7746bc6ffd81c7ee4d5a36f35a037e2;hp=753a11411b128660820f91a062a546649a62d829;hb=897a17c13e8421ff38516f9a3a808ef0225b3be7;hpb=2dae538f996498a55b779e26a4c63b6e87bbe055 diff --git a/public/mirror.php b/public/mirror.php index 753a114..4040d87 100644 --- 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); + $description = escapeshellarg($json->repository->descrption); passthru("git clone --mirror $source . 2>&1", $rv); + passthru("git config gitweb.description $description 2>&1"); if ($rv == 0) { $response->setResponseCode(200); }