Fixes #153 - untracked folder files don't show properly

This commit is contained in:
Eric Amodio
2017-09-26 21:52:00 -04:00
parent ce9394297d
commit b56d101f76
2 changed files with 4 additions and 1 deletions

View File

@@ -420,7 +420,7 @@ export class Git {
static status(repoPath: string, porcelainVersion: number = 1): Promise<string> {
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<string> {