Skip to content

Commit 597bdc9

Browse files
committed
Make git command less ambiguous
1 parent cc24211 commit 597bdc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/git.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const getDiffFileList = (staged = false): string[] => {
3737
"--relative",
3838
staged && "--staged",
3939
process.env.ESLINT_PLUGIN_DIFF_COMMIT ?? "HEAD",
40+
"--",
4041
].reduce<string[]>(
4142
(acc, cur) => (typeof cur === "string" ? [...acc, cur] : acc),
4243
[]

0 commit comments

Comments
 (0)