From b56d101f768bf77891d371446e70f50ade919954 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 26 Sep 2017 21:52:00 -0400 Subject: [PATCH] Fixes #153 - untracked folder files don't show properly --- CHANGELOG.md | 3 +++ src/git/git.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {