瀏覽代碼

Fixes diffWith when called with no previous sha

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

+ 1
- 1
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: {

Loading…
取消
儲存