Skip to content
Permalink
Browse files

fix: πŸ› ignore "staged files check" when -a or --amend is passed

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 206274ff1cfab9180fa3298f8cb9408e4971feca
Showing with 5 additions and 1 deletion.
  1. +5 βˆ’1 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

1 comment on commit 206274f

@streamich

This comment has been minimized.

Copy link
Owner

@streamich streamich commented on 206274f Aug 26, 2020

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

Please sign in to comment.
You can’t perform that action at this time.