Skip to content

Commit

Permalink
Use -- to separate search path
Browse files Browse the repository at this point in the history
  • Loading branch information
icco authored Apr 10, 2024
1 parent 7a7a721 commit d5d3b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/git-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function gitDiff() {
}

// --no-pager ensures that the git command does not use a pager (like less) to display the diff
const gitDiffCmd = `git --no-pager diff ${gitOptions} ${baseBranch} ${searchPath}`
const gitDiffCmd = `git --no-pager diff ${gitOptions} ${baseBranch} -- ${searchPath}`
core.debug(`running git diff command: ${gitDiffCmd}`)
const {stdout, stderr} = await execAsync(gitDiffCmd, {
maxBuffer: maxBufferSize
Expand Down

0 comments on commit d5d3b00

Please sign in to comment.