File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import type { GitCommit } from '../git/models/commit';
1111import type { GitLineDiff , ParsedGitDiffHunk } from '../git/models/diff' ;
1212import type { PullRequest } from '../git/models/pullRequest' ;
1313import type { GitRemote } from '../git/models/remote' ;
14- import { uncommittedStaged } from '../git/models/revision' ;
14+ import { deletedOrMissing , uncommittedStaged } from '../git/models/revision' ;
1515import type { RemoteProvider } from '../git/remotes/remoteProvider' ;
1616import { isUncommittedStaged , shortenRevision } from '../git/utils/revision.utils' ;
1717import { configuration } from '../system/-webview/configuration' ;
@@ -111,7 +111,7 @@ export async function changesMessage(
111111 message = `[$(compare-changes)](${ DiffWithCommand . createMarkdownCommandLink ( commit , range ) } "Open Changes")` ;
112112
113113 previousSha ??= await commit . getPreviousSha ( ) ;
114- if ( previousSha ) {
114+ if ( previousSha && previousSha !== deletedOrMissing ) {
115115 previous = ` [$(git-commit) ${ shortenRevision (
116116 previousSha ,
117117 ) } ](${ ShowQuickCommitCommand . createMarkdownCommandLink ( previousSha ) } "Show Commit") ${
You can’t perform that action at this time.
0 commit comments