Skip to content

Commit

Permalink
Git - fix remote reference id (microsoft#228164)
Browse files Browse the repository at this point in the history
* Git - fix remote reference id

* Remove unnecessary code
  • Loading branch information
lszomoru authored Sep 10, 2024
1 parent 8010aa6 commit 0485695
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/git/src/historyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import { ContextKeys } from './scmViewPane.js';
import { IActionViewItem } from '../../../../base/browser/ui/actionbar/actionbar.js';
import { IDropdownMenuActionViewItemOptions } from '../../../../base/browser/ui/dropdown/dropdownActionViewItem.js';
import { ActionViewItem } from '../../../../base/browser/ui/actionbar/actionViewItems.js';
import { renderLabelWithIcons } from '../../../../base/browser/ui/iconLabel/iconLabels.js';
import { IQuickInputService, IQuickPickItem, IQuickPickSeparator } from '../../../../platform/quickinput/common/quickInput.js';
import { Event } from '../../../../base/common/event.js';
import { Iterable } from '../../../../base/common/iterator.js';
Expand Down Expand Up @@ -115,7 +114,6 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
name.textContent = localize('auto', "Auto");
} else if (this._historyItemsFilter.length === 1) {
name.textContent = this._historyItemsFilter[0].name;
reset(this.label, ...renderLabelWithIcons(`$(git-branch) ${this._historyItemsFilter[0].name}`));
} else {
name.textContent = localize('items', "{0} Items", this._historyItemsFilter.length);
}
Expand Down

0 comments on commit 0485695

Please sign in to comment.