diff --git a/src/commitizen/staging.js b/src/commitizen/staging.js index caac1f05..58895089 100644 --- a/src/commitizen/staging.js +++ b/src/commitizen/staging.js @@ -7,14 +7,14 @@ export {isClean}; * Asynchrounously determines if the staging area is clean */ function isClean(repoPath, done) { - git.exec({cwd:repoPath, args: '--no-pager diff --cached', quiet: true}, function (err, stdout) { + git.exec({cwd:repoPath, args: '--no-pager diff --cached --name-only', quiet: true}, function (err, stdout) { let stagingIsClean; if(stdout && isString(stdout) && stdout.trim().length>0) { - stagingIsClean = false; + stagingIsClean = false; } else { stagingIsClean = true; } done(stagingIsClean); }); -} \ No newline at end of file +}