Fixes #57 - no more blank message w/o a diff.tool

This commit is contained in:
Eric Amodio
2017-04-07 11:09:15 -04:00
parent 4c4d21741e
commit 6a3428e6d2

View File

@@ -150,8 +150,13 @@ export class Git {
return gitCommand(repoPath, ...params); return gitCommand(repoPath, ...params);
} }
static config_get(key: string, repoPath?: string) { static async config_get(key: string, repoPath?: string) {
return gitCommand(repoPath || '', `config`, `--get`, key); try {
return await gitCommand(repoPath || '', `config`, `--get`, key);
}
catch (ex) {
return '';
}
} }
static diff_nameStatus(repoPath: string, sha1?: string, sha2?: string) { static diff_nameStatus(repoPath: string, sha1?: string, sha2?: string) {