Git - fix remote reference id (#228164)

* Git - fix remote reference id

* Remove unnecessary code
This commit is contained in:
Ladislau Szomoru
2024-09-11 00:40:22 +02:00
committed by GitHub
parent 8010aa6cdf
commit 0485695683
2 changed files with 1 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function toSourceControlHistoryItemRef(ref: Ref): SourceControlHistoryItemRef {
switch (ref.type) {
case RefType.RemoteHead:
return {
id: `refs/remotes/${ref.remote}/${ref.name}`,
id: `refs/remotes/${ref.name}`,
name: ref.name ?? '',
description: ref.commit ? l10n.t('Remote branch at {0}', ref.commit.substring(0, 8)) : undefined,
revision: ref.commit,