From f9913205ddac6bbf356aa2f6d9dbab56bc583037 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 8 Oct 2020 11:04:39 +0200 Subject: [PATCH] Fix VcsRepositoryTest --- tests/Composer/Test/Repository/VcsRepositoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Repository/VcsRepositoryTest.php b/tests/Composer/Test/Repository/VcsRepositoryTest.php index 0cab2f8bb..72fd36a7b 100644 --- a/tests/Composer/Test/Repository/VcsRepositoryTest.php +++ b/tests/Composer/Test/Repository/VcsRepositoryTest.php @@ -42,8 +42,8 @@ class VcsRepositoryTest extends TestCase return; } - if (!@mkdir(self::$gitRepo) || !@chdir(self::$gitRepo)) { - $this->skipped = 'Could not create and move into the temp git repo '.self::$gitRepo; + if (!@chdir(self::$gitRepo)) { + $this->skipped = 'Could not move into the temp git repo '.self::$gitRepo; return; }