diff --git a/src/commands/diffWith.ts b/src/commands/diffWith.ts index 64936c0..f57ad5c 100644 --- a/src/commands/diffWith.ts +++ b/src/commands/diffWith.ts @@ -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: {