Skip to content
Snippets Groups Projects
Unverified Commit 2296602c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3085354 by greg.1.anderson, mbaynton, hussainweb: Better default...

Issue #3085354 by greg.1.anderson, mbaynton, hussainweb: Better default behavior for scaffold-created .gitignore files
parent 66258696
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -91,9 +91,8 @@ protected function managementOfGitIgnoreEnabled(ScaffoldOptions $options) {
}
// If the composer.json did not specify whether or not .gitignore files
// should be managed, then manage them if the vendor directory is not
// committed.
return !Git::checkTracked($this->io, 'vendor', $this->dir);
// should be managed, then manage them if the vendor directory is ignored.
return Git::checkIgnore($this->io, 'vendor', $this->dir);
}
/**
......
......@@ -302,7 +302,7 @@ manage `.gitignore` files for files written during the scaffold operation.
- true: `.gitignore` files will be updated when scaffold files are written.
- false: `.gitignore` files will never be modified.
- Not set: `.gitignore` files will be updated if the target directory is a local
working copy of a git repository, and the `vendor` directory is not committed
working copy of a git repository, and the `vendor` directory is ignored
in that repository.
### locations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment