From: Michael Wallner Date: Fri, 29 May 2015 18:16:54 +0000 (+0200) Subject: fix description X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=68c3880ed7004766b6d7208dbd576c74439d68d8;p=m6w6%2Freplicator fix description --- diff --git a/public/mirror.php b/public/mirror.php index 4040d87..57970db 100644 --- a/public/mirror.php +++ b/public/mirror.php @@ -58,9 +58,10 @@ switch ($evt) { } } elseif (mkdir($path, 0755, true) && chdir($path)) { $source = escapeshellarg($json->repository->clone_url); - $description = escapeshellarg($json->repository->descrption); + $description = escapeshellarg($json->repository->description); passthru("git clone --mirror $source . 2>&1", $rv); passthru("git config gitweb.description $description 2>&1"); + unlink("description"); if ($rv == 0) { $response->setResponseCode(200); }