Skip to content

Commit

Permalink
Fix display diff
Browse files Browse the repository at this point in the history
  • Loading branch information
Sly Bouhafs committed Oct 7, 2023
1 parent f86ade6 commit 7e18cf6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ export const getDiffAgainstMaster = async (
validateFiles(changedFilesString, lessonOrder, challengeOrder.toString())

const [display, db] = await Promise.all([
git.diff([`--color`, `master..${current}`, ...ignoreFileOptions]),
git.diff([
`--color`,
`master..${current}`,
'--diff-filter=d',
...ignoreFileOptions,
]),
git.diff([`master..${current}`, '--diff-filter=d', ...ignoreFileOptions]),
])

Expand Down

0 comments on commit 7e18cf6

Please sign in to comment.