diff --git a/lib/utils/gitstatusparser.js b/lib/utils/gitstatusparser.js index a5d5f72..cbcea13 100644 --- a/lib/utils/gitstatusparser.js +++ b/lib/utils/gitstatusparser.js @@ -34,7 +34,7 @@ module.exports = function gitStatusParser( response ) { const branch = branchData.split( '...' )[ 0 ].match( /## (.*)$/ )[ 1 ]; const added = findFiles( [ ADDED_STAGED_SYMBOL ] ); - const modified = findFiles( [ MODIFIED_NOT_STAGED_SYMBOL, MODIFIED_STAGED_AND_NOT_STAGED_SYMBOL ] ); + const modified = findFiles( [ MODIFIED_NOT_STAGED_SYMBOL, MODIFIED_STAGED_AND_NOT_STAGED_SYMBOL, DELETE_NOT_STAGED_SYMBOL ] ); const deleted = findFiles( [ DELETE_STAGED_SYMBOL, DELETE_NOT_STAGED_SYMBOL ] ); const renamed = findFiles( [ RENAMED_STAGED_SYMBOL ] ); const unmerged = findFiles( UNMERGED_SYMBOLS ); diff --git a/tests/utils/gitstatusparser.js b/tests/utils/gitstatusparser.js index f7edee2..695e54b 100644 --- a/tests/utils/gitstatusparser.js +++ b/tests/utils/gitstatusparser.js @@ -63,8 +63,10 @@ describe( 'utils', () => { const status = gitStatusParser( gitStatusResponse ); expect( status.modified ).to.deep.equal( [ + 'README.txt', 'lib/index.js', - 'lib/tasks/logger.js' + 'lib/tasks/logger.js', + 'lib/tasks/.gitkeep' ] ); } );