Commit 2265d661 authored by catch's avatar catch
Browse files

Issue #3396574 by Spokje: Exclude copying 'core/node_modules' in getCodebaseFinder

(cherry picked from commit 465cb227)
parent 8bfede4d
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -546,9 +546,8 @@ protected function getPortNumber() {
   * Use this method to copy the current codebase, including any patched
   * changes, into the workspace.
   *
   * By default, the copy will exclude sites/default/settings.php,
   * sites/default/files, and vendor/. Use the $iterator parameter to override
   * this behavior.
   * By default, the copy will exclude site-specific and build-related files and
   * directories. Use the $iterator parameter to override this behavior.
   *
   * @param \Iterator|null $iterator
   *   (optional) An iterator of all the files to copy. Default behavior is to
@@ -589,6 +588,7 @@ public function getCodebaseFinder() {
      ->notPath('#^sites/default/files#')
      ->notPath('#^sites/simpletest#')
      ->notPath('#^vendor#')
      ->notPath('#^core/node_modules#')
      ->notPath('#^sites/default/settings\..*php#')
      ->ignoreDotFiles(FALSE)
      ->ignoreVCS(FALSE);