Selaa lähdekoodia

Fixes bad branch status for remote branches

main
Eric Amodio 4 vuotta sitten
vanhempi
commit
7fbb91c5ed
2 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  1. +6
    -0
      CHANGELOG.md
  2. +4
    -1
      src/views/nodes/remoteNode.ts

+ 6
- 0
CHANGELOG.md Näytä tiedosto

@ -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 Näytä tiedosto

@ -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;

Ladataan…
Peruuta
Tallenna