Adds proper support for multiline commit messages

Fixes #33 - commit messages needs to be escaped
This commit is contained in:
Eric Amodio
2017-02-27 11:13:42 -05:00
parent aff36efeca
commit ccd0ad67a3
3 changed files with 7 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export * from './enrichers/logParserEnricher';
let git: IGit;
const UncommittedRegex = /^[0]+$/;
const DefaultLogParams = [`log`, `--name-status`, `--full-history`, `-m`, `--date=iso8601-strict`, `--format=%H -%nauthor %an%nauthor-date %ai%ncommitter %cn%ncommitter-date %ci%nsummary %s%nfilename ?`];
const DefaultLogParams = [`log`, `--name-status`, `--full-history`, `-m`, `--date=iso8601-strict`, `--format=%H -%nauthor %an%nauthor-date %ai%ncommitter %cn%ncommitter-date %ci%nsummary %B%nfilename ?`];
async function gitCommand(cwd: string, ...args: any[]) {
try {