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

Commit

Permalink
Merge pull request streamich#203 from streamich/staged-files-check-amend
Browse files Browse the repository at this point in the history
fix: πŸ› ignore "staged files check" when -a or --amend is passed
  • Loading branch information
streamich authored Aug 26, 2020
2 parents 9511a01 + 206274f commit 185d162
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

0 comments on commit 185d162

Please sign in to comment.