Skip to content

Commit b56d101

Browse files
committed
Fixes #153 - untracked folder files don't show properly
1 parent ce93942 commit b56d101

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1818
### Changed
1919
- Changes `${path}` token to be the full file path in the file formatting settings
2020

21+
### Fixed
22+
- Fixes [#153](https://github.com/eamodio/vscode-gitlens/issues/153) - New folders treated as files in "Changed Files" section of the sidebar component
23+
2124
## [5.2.0] - 2017-09-23
2225
### Added
2326
- Adds new `Changed Files` node to the `Repository Status` node of the `GitLens` custom view's `Repository View` -- closes [#139](https://github.com/eamodio/vscode-gitlens/issues/139)

src/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export class Git {
420420

421421
static status(repoPath: string, porcelainVersion: number = 1): Promise<string> {
422422
const porcelain = porcelainVersion >= 2 ? `--porcelain=v${porcelainVersion}` : '--porcelain';
423-
return gitCommand({ cwd: repoPath }, 'status', porcelain, '--branch');
423+
return gitCommand({ cwd: repoPath }, 'status', porcelain, '--branch', '-u');
424424
}
425425

426426
static status_file(repoPath: string, fileName: string, porcelainVersion: number = 1): Promise<string> {

0 commit comments

Comments
 (0)