From 206274ff1cfab9180fa3298f8cb9408e4971feca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gra=C3=A7a?= Date: Wed, 26 Aug 2020 16:33:01 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20ignore=20"staged=20files?= =?UTF-8?q?=20check"=20when=20-a=20or=20--amend=20is=20passed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit since the user might just be amending the messages we should no check for files staged. ✅ Closes: #189 --- lib/cli.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index 79567c29..89f56a4a 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -33,7 +33,11 @@ const main = async () => { if (cliOptions.dryRun) { // eslint-disable-next-line no-console console.log('Running in dry mode.'); - } else if (!passThroughParams['allow-empty']) { + } else if ( + !passThroughParams['allow-empty'] && + !passThroughParams.a && + !passThroughParams.amend + ) { try { /** * @author https://github.com/rodrigograca31