avoid double logging of git diff
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user