From 935d62d9589ce23cde8692c0608c5aadc88bbdc5 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 27 Jun 2024 10:38:52 +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 b81ef21..93a3f80 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(str_replace('/drupal', '', $path));
+          $this->gitIgnore(str_replace('/drupal/', '', $path) . '/');
         }
         if (!$fs->exists($path)) {
           $fs->mkdir($path, 0775);
-- 
GitLab