Browse Source

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

main
Eric Amodio 7 years ago
parent
commit
6a3428e6d2
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      src/git/git.ts

+ 7
- 2
src/git/git.ts View File

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

Loading…
Cancel
Save