From: Michael Wallner Date: Thu, 28 May 2015 13:29:26 +0000 (+0200) Subject: add gitweb.description X-Git-Url: https://git.m6w6.name/?p=m6w6%2Freplicator;a=commitdiff_plain;h=897a17c13e8421ff38516f9a3a808ef0225b3be7 add gitweb.description --- 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); }