diff --git a/src/Handler.php b/src/Handler.php index 7b655d9932e08294ba2ee048045d9f49e62505cd..b81ef21385a50deb884f85043848ad41b7025dc9 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);