From e74069767cd910f2574e8d423dd16e881a5e1b24 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Thu, 22 Feb 2024 18:40:28 -0500 Subject: [PATCH 1/2] Removed check if its git for ignore --- lib/src/workflows/use_version.workflow.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/workflows/use_version.workflow.dart b/lib/src/workflows/use_version.workflow.dart index cf34b4fc..c94cc374 100644 --- a/lib/src/workflows/use_version.workflow.dart +++ b/lib/src/workflows/use_version.workflow.dart @@ -108,6 +108,10 @@ Future _checkGitignore(Project project, {required bool force}) async { logger.detail('Update gitignore: $updateGitIgnore'); if (!await GitDir.isGitDir(project.path)) { + 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,', + ); logger.detail('Project is not a git repository.'); return; From 7d34e0e0bfe42fb09c6151b5f0a7c0f5e1e84657 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Thu, 22 Feb 2024 18:40:52 -0500 Subject: [PATCH 2/2] Removed return --- lib/src/workflows/use_version.workflow.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/src/workflows/use_version.workflow.dart b/lib/src/workflows/use_version.workflow.dart index c94cc374..653d5ce2 100644 --- a/lib/src/workflows/use_version.workflow.dart +++ b/lib/src/workflows/use_version.workflow.dart @@ -112,9 +112,6 @@ Future _checkGitignore(Project project, {required bool force}) async { '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,', ); - logger.detail('Project is not a git repository.'); - - return; } if (!updateGitIgnore) {