Skip to content

Commit

Permalink
Merge pull request #644 from leoafarias/fix/gitignore-even-if-not-git
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias authored Feb 23, 2024
2 parents daee274 + 7d34e0e commit d82d1c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/workflows/use_version.workflow.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ Future<void> _checkGitignore(Project project, {required bool force}) async {

logger.detail('Update gitignore: $updateGitIgnore');
if (!await GitDir.isGitDir(project.path)) {
logger.detail('Project is not a git repository.');

return;
logger.warn(
'Project is not a git repository. \n But will set .gitignore as IDEs may use it,'
'to determine what to index and display on searches,',
);
}

if (!updateGitIgnore) {
Expand Down

0 comments on commit d82d1c5

Please sign in to comment.