Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
fix: πŸ› ignore "staged files check" when -a or --amend is passed
Browse files Browse the repository at this point in the history
since the user might just be amending the messages we should no check
for files staged.

βœ… Closes: streamich#189
  • Loading branch information
rodrigograca31 committed Aug 26, 2020
1 parent 9511a01 commit 206274f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cli.js
Expand Up @@ -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
Expand Down

0 comments on commit 206274f

Please sign in to comment.