Procházet zdrojové kódy

Fixes bad branch status for remote branches

main
Eric Amodio před 4 roky
rodič
revize
7fbb91c5ed
2 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. +6
    -0
      CHANGELOG.md
  2. +4
    -1
      src/views/nodes/remoteNode.ts

+ 6
- 0
CHANGELOG.md Zobrazit soubor

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
### Fixed
- Fixes invalid branch status showing up for remote branches
## [11.0.5] - 2020-11-23
### Fixed

+ 4
- 1
src/views/nodes/remoteNode.ts Zobrazit soubor

@ -47,7 +47,10 @@ export class RemoteNode extends ViewNode {
if (branches.length === 0) return [new MessageNode(this.view, this, 'No branches could be found.')];
const branchNodes = branches.map(
b => new BranchNode(GitUri.fromRepoPath(this.uri.repoPath!, b.ref), this.view, this, b, false),
b =>
new BranchNode(GitUri.fromRepoPath(this.uri.repoPath!, b.ref), this.view, this, b, false, {
showTracking: false,
}),
);
if (this.view.config.branches.layout === ViewBranchesLayout.List) return branchNodes;

Načítá se…
Zrušit
Uložit