Skip to content

Commit

Permalink
Fixes an issue where close repo command didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 5, 2018
1 parent ea92ba9 commit 98d7716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed

- Fixes [#528](https://github.com/eamodio/vscode-gitlens/issues/528) — Remotes not showing, being filtred on domain and file, but not complete path
- Fixes an issue where _Close Repository_ command didn't work

## [9.0.1] - 2018-12-02

Expand Down
2 changes: 2 additions & 0 deletions src/views/nodes/repositoriesNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export class RepositoriesNode extends SubscribeableViewNode<RepositoriesView> {

const children = [];
for (const repo of repositories) {
if (repo.closed) continue;

const normalizedPath = repo.normalizedPath;
const child = (this._children as RepositoryNode[]).find(c => c.repo.normalizedPath === normalizedPath);
if (child !== undefined) {
Expand Down

0 comments on commit 98d7716

Please sign in to comment.