Procházet zdrojové kódy

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

main
Eric Amodio před 8 roky
rodič
revize
6a3428e6d2
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. +7
    -2
      src/git/git.ts

+ 7
- 2
src/git/git.ts Zobrazit soubor

@ -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) {

Načítá se…
Zrušit
Uložit