Skip to content

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: #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
Original file line number Diff line number Diff line change
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

1 comment on commit 206274f

@streamich
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 4.5.0-staged-files-check-amend.941 🀞 staged-files-check-amend on Travis πŸŽ‰

Please sign in to comment.