Skip to content

Commit

Permalink
make sure that renamed files are picked up properly, fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils authored Dec 21, 2023
1 parent bee19d7 commit ea32e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function run() {
}

// Git consistently uses unix-style paths, so we do not need to worry about path conversions.
let {exitCode, stdout, stderr} = await exec.getExecOutput("git", ["diff", "--name-only", "--staged"])
let {exitCode, stdout, stderr} = await exec.getExecOutput("git", ["diff", "--name-only", "--staged", "--no-renames"])
if (exitCode !== 0) {
console.error(stdout);
console.error(stderr);
Expand Down

0 comments on commit ea32e3a

Please sign in to comment.