From 2384019f5d981ab19492a364f3ad57c73a397803 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Thu, 3 Sep 2020 11:07:58 +0200
Subject: [PATCH] =?UTF-8?q?Corrige=20le=20bug=20de=20d=C3=A9tection=20du?=
 =?UTF-8?q?=20d=C3=A9p=C3=B4t=20Git.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/Config.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Config.php b/src/Config.php
index e153c0d..f4245f6 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -187,7 +187,7 @@ final class Config extends PhpCsFixerConfig
     private static function findGitRepository(string $path): string
     {
         while (!is_dir($path . '/.git') && $path !== '/') {
-            $path = basename($path);
+            $path = dirname($path);
         }
 
         return $path;
-- 
GitLab