Skip to content

Commit 1aff14f

Browse files
authored
Merge pull request #31 from Thatkookooguy/patch-1
make sure git diff doesn't print out with colors
2 parents a55b180 + 5b899ab commit 1aff14f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cli.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
} else {
5151
gitArgs = '-M -C HEAD';
5252
}
53+
54+
if (gitArgs.indexOf('--no-color') < 0) {
55+
gitArgs += ' --no-color';
56+
}
5357

5458
var diffCommand = 'git diff ' + gitArgs;
5559
return callback(null, utils.runCmd(diffCommand));

0 commit comments

Comments
 (0)