From 7734156ce272189a7c663cccbb38af73a2b954b3 Mon Sep 17 00:00:00 2001 From: Jan Bobisud Date: Tue, 13 Jul 2021 10:48:35 +0200 Subject: [PATCH] fix: do not swallow already detected deprecated usage by last task (#991) The deprecation warning instructing users to remove `git add` from their tasks was not shown if a valid task followed the deprecated one. --- lib/runAll.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/runAll.js b/lib/runAll.js index 7ad7c56ed..ba76bdf13 100644 --- a/lib/runAll.js +++ b/lib/runAll.js @@ -147,7 +147,8 @@ const runAll = async ( matchedFiles.add(file) }) - hasDeprecatedGitAdd = subTasks.some((subTask) => subTask.command === 'git add') + hasDeprecatedGitAdd = + hasDeprecatedGitAdd || subTasks.some((subTask) => subTask.command === 'git add') chunkListrTasks.push({ title: `Running tasks for ${task.pattern}`,