From 95639b48d4564ed35c5a20997d89e6852cf27cc9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 28 May 2015 14:55:47 +0200 Subject: [PATCH] redirect stderr --- public/mirror.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.30.2