Browse Source

Fixes diffWith when called with no previous sha

main
Eric Amodio 7 years ago
parent
commit
88421c586d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/commands/diffWith.ts

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

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

Loading…
Cancel
Save