We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--allow-emtpy
1 parent 07b92bc commit 495437cCopy full SHA for 495437c
src/cli/strategies/git-cz.js
@@ -52,7 +52,7 @@ function gitCz (rawGitArgs, environment, adapterConfig) {
52
throw error;
53
}
54
55
- if (stagingIsClean) {
+ if (stagingIsClean && !parsedGitCzArgs.includes('--allow-empty')) {
56
throw new Error('No files added to staging! Did you forget to run git add?');
57
58
0 commit comments