Skip to content

Commit

Permalink
Fixes #57 - no more blank message w/o a diff.tool
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Apr 7, 2017
1 parent 4c4d217 commit 6a3428e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a3428e

Please sign in to comment.