Sfoglia il codice sorgente

Fixes diffWith when called with no previous sha

main
Eric Amodio 7 anni fa
parent
commit
88421c586d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/commands/diffWith.ts

+ 1
- 1
src/commands/diffWith.ts Vedi File

@ -48,7 +48,7 @@ export class DiffWithCommand extends ActiveEditorCommand {
args = {
repoPath: commit1.repoPath,
lhs: {
sha: commit1.previousSha!,
sha: commit1.previousSha !== undefined ? commit1.previousSha : GitService.fakeSha,
uri: commit1.previousUri!
},
rhs: {

Caricamento…
Annulla
Salva