From 458f3156d536fef50b0c1e014aeaa4e924c6803d Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Thu, 27 Jun 2024 10:33:03 +0200 Subject: [PATCH] composer/plugin/drupal-development-environment#20 --- src/Handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handler.php b/src/Handler.php index 7b655d9..b81ef21 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -80,7 +80,7 @@ class Handler extends BaseHandler { foreach (['contrib', 'custom'] as $subdir) { $path = $dir . '/' . $subdir; if ($subdir === 'contrib') { - $this->gitIgnore($path); + $this->gitIgnore(str_replace('/drupal', '', $path)); } if (!$fs->exists($path)) { $fs->mkdir($path, 0775); -- GitLab