From 897a17c13e8421ff38516f9a3a808ef0225b3be7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 28 May 2015 15:29:26 +0200 Subject: [PATCH] add gitweb.description --- public/mirror.php | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2