Skip to content

Commit 9984f04

Browse files
authored
Do not attempt to get commit message for the workspace record (#3914)
1 parent 9e443b4 commit 9984f04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extension/src/experiments/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { DecorationProvider } from './model/decorationProvider'
4242
import { starredFilter } from './model/filterBy/constants'
4343
import { ResourceLocator } from '../resourceLocator'
4444
import { AvailableCommands, InternalCommands } from '../commands/internal'
45-
import { ExpShowOutput } from '../cli/dvc/contract'
45+
import { EXPERIMENT_WORKSPACE_ID, ExpShowOutput } from '../cli/dvc/contract'
4646
import { ViewKey } from '../webview/constants'
4747
import { BaseRepository } from '../webview/repository'
4848
import { Title } from '../vscode/title'
@@ -574,6 +574,9 @@ export class Experiments extends BaseRepository<TableData> {
574574
}
575575
let output = ''
576576
for (const commit of data) {
577+
if (commit.rev === EXPERIMENT_WORKSPACE_ID) {
578+
continue
579+
}
577580
output += await this.internalCommands.executeCommand(
578581
AvailableCommands.GIT_GET_COMMIT_MESSAGES,
579582
this.dvcRoot,

0 commit comments

Comments
 (0)