X-Git-Url: https://git.m6w6.name/?p=m6w6%2Freplicator;a=blobdiff_plain;f=public%2Fmirror.php;h=4203c9e1a24674b5286cc5ce434b7f25a2c729dd;hp=7c80fef26ec248fd34e3020f7e20d6a4689dfe0d;hb=95639b48d4564ed35c5a20997d89e6852cf27cc9;hpb=6e871d7422315a8b631e2d8031dea10785fd308c;ds=sidebyside diff --git a/public/mirror.php b/public/mirror.php index 7c80fef..4203c9e 100644 --- a/public/mirror.php +++ b/public/mirror.php @@ -46,12 +46,12 @@ switch ($evt) { $repo = $json->repository->full_name; $path = $mirror . "/" . $repo; if (is_dir($path) && chdir($path)) { - passthru("git fetch -p", $rv); + passthru("git fetch -p 2>&1", $rv); if ($rv == 0) { $response->setResponseCode(200); } } elseif (mkdir($path, 0755, true) && chdir($path)) { - passthru("git clone --mirror " . escapeshellarg($repo) . " .", $rv); + passthru("git clone --mirror " . escapeshellarg($repo) . " . 2>&1", $rv); if ($rv == 0) { $response->setResponseCode(200); }