File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1010 - Also remaps ` Show SCM ` to ` Ctrl+Shift+G G ` since by default it is ` Ctrl+Shift+G ` if the ` chorded ` keymap is used
1111
1212### Fixed
13+ - Fixes [ #252 ] ( https://github.com/eamodio/vscode-gitlens/issues/252 ) - Cannot read property 'push' of undefined
1314- Fixes issue where GitLens wouldn't detect the creation of a Git repository if there were no other repositories open
1415- Fixes issue where some GitLens commands would show in the palette even though there was no repository
1516
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ export class StatusNode extends ExplorerNode {
2020 async getChildren ( ) : Promise < ExplorerNode [ ] > {
2121 this . resetChildren ( ) ;
2222
23- this . children = [ ] ;
24-
2523 const status = await this . repo . getStatus ( ) ;
26- if ( status === undefined ) return this . children ;
24+ if ( status === undefined ) return [ ] ;
25+
26+ this . children = [ ] ;
2727
2828 if ( status . state . behind ) {
2929 this . children . push ( new StatusUpstreamNode ( status , 'behind' , this . explorer ) ) ;
You can’t perform that action at this time.
0 commit comments