avoid double logging of git diff

This commit is contained in:
dogboydog 2020-07-08 21:08:14 -04:00 committed by Webber Takken
parent 72ff2983a1
commit ec0cde0c85
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -50,7 +50,7 @@ export default class Versioning {
* Maximum number of lines to print when logging the git diff * Maximum number of lines to print when logging the git diff
*/ */
static get maxDiffLines() { static get maxDiffLines() {
return 5; // TODO: testing only, revert return 60;
} }
/** /**
@ -60,7 +60,7 @@ export default class Versioning {
const diffCommand = `git --no-pager diff | head -n ${this.maxDiffLines.toString()}`; const diffCommand = `git --no-pager diff | head -n ${this.maxDiffLines.toString()}`;
await System.run('sh', undefined, { await System.run('sh', undefined, {
input: Buffer.from(diffCommand), input: Buffer.from(diffCommand),
silent: false, silent: true,
}); });
} }