Git - fix bug with comparing with a remote branch (#273705)

* Git - fix bug with comparing with a remote branch

* Update placeholder
This commit is contained in:
Ladislau Szomoru
2025-10-28 11:10:07 +01:00
committed by GitHub
parent 124710c5ff
commit 294b045d4b
2 changed files with 5 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ class RefItem implements QuickPickItem {
case RefType.Head:
return `refs/heads/${this.ref.name}`;
case RefType.RemoteHead:
return `refs/remotes/${this.ref.remote}/${this.ref.name}`;
return `refs/remotes/${this.ref.name}`;
case RefType.Tag:
return `refs/tags/${this.ref.name}`;
}
@@ -5117,7 +5117,7 @@ export class CommandCenter {
return itemsProcessor.processRefs(refs);
};
const placeHolder = l10n.t('Select a source reference to compare to');
const placeHolder = l10n.t('Select a source reference to compare with');
const sourceRef = await this.pickRef(getRefPicks(), placeHolder);
if (!(sourceRef instanceof BranchItem)) {
@@ -5130,7 +5130,7 @@ export class CommandCenter {
}
try {
const changes = await repository.diffTrees(historyItemRef.id, sourceRef.refId);
const changes = await repository.diffTrees(sourceRef.refId, historyItemRef.id);
if (changes.length === 0) {
window.showInformationMessage(l10n.t('The selected references have no differences.'));