Skip to content

Commit

Permalink
fix diff command to quote filename strings (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwootto authored Mar 14, 2024
1 parent 62fb12e commit cad3085
Show file tree
Hide file tree
Showing 4 changed files with 9,055 additions and 6,724 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ $ npm install -g @devcycle/cli
$ dvc COMMAND
running command...
$ dvc (--version)
@devcycle/cli/5.14.1 linux-x64 node-v20.10.0
@devcycle/cli/5.14.1 darwin-arm64 node-v20.10.0
$ dvc --help [COMMAND]
USAGE
$ dvc COMMAND
Expand Down
2 changes: 1 addition & 1 deletion oclif.manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.14.0",
"version": "5.14.1",
"commands": {
"authCommand": {
"id": "authCommand",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/diff/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const executeDiff = (
files = ' ' + getFilteredFiles(flags, codeInsightsConfig).join(' ')
}

execSync(`git diff ${diffCommand}${files} > diff.txt`, {
execSync(`git diff ${diffCommand}"${files}" > diff.txt`, {
stdio: 'ignore',
})
return parse(readFileSync('diff.txt', 'utf8'))
Expand Down
Loading

0 comments on commit cad3085

Please sign in to comment.