瀏覽代碼

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

main
Eric Amodio 7 年之前
父節點
當前提交
6a3428e6d2
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. +7
    -2
      src/git/git.ts

+ 7
- 2
src/git/git.ts 查看文件

@ -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…
取消
儲存