diff --git a/package.json b/package.json index ebd90aa..b8e7421 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "c0d3", - "version": "2.3.4", + "version": "2.3.5", "description": "Command Line Interface (CLI) for c0d3.com", "license": "MIT", "homepage": "https://c0d3.com", diff --git a/src/util/git.ts b/src/util/git.ts index fedc3b8..09e9592 100644 --- a/src/util/git.ts +++ b/src/util/git.ts @@ -134,6 +134,7 @@ export const getDiffAgainstMaster = async ( const changedFilesString = await git.diff([ `master..${current}`, + '--diff-filter=d', '--name-only', ...ignoreFileOptions, ]) @@ -148,8 +149,13 @@ export const getDiffAgainstMaster = async ( validateFiles(changedFilesString, lessonOrder, challengeOrder.toString()) const [display, db] = await Promise.all([ - git.diff([`--color`, `master..${current}`, ...ignoreFileOptions]), - git.diff([`master..${current}`, ...ignoreFileOptions]), + git.diff([ + `--color`, + `master..${current}`, + '--diff-filter=d', + ...ignoreFileOptions, + ]), + git.diff([`master..${current}`, '--diff-filter=d', ...ignoreFileOptions]), ]) return {