diff --git a/CHANGELOG.md b/CHANGELOG.md index d9c81f6..e1f3565 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Changed - Changes `${path}` token to be the full file path in the file formatting settings +### Fixed +- Fixes [#153](https://github.com/eamodio/vscode-gitlens/issues/153) - New folders treated as files in "Changed Files" section of the sidebar component + ## [5.2.0] - 2017-09-23 ### Added - 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) diff --git a/src/git/git.ts b/src/git/git.ts index f7098c7..43b54e5 100644 --- a/src/git/git.ts +++ b/src/git/git.ts @@ -420,7 +420,7 @@ export class Git { static status(repoPath: string, porcelainVersion: number = 1): Promise { const porcelain = porcelainVersion >= 2 ? `--porcelain=v${porcelainVersion}` : '--porcelain'; - return gitCommand({ cwd: repoPath }, 'status', porcelain, '--branch'); + return gitCommand({ cwd: repoPath }, 'status', porcelain, '--branch', '-u'); } static status_file(repoPath: string, fileName: string, porcelainVersion: number = 1): Promise {