Skip to content

Commit 88341d3

Browse files
committed
Fixes inaccurate count
1 parent 58cd5c1 commit 88341d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/statusFilesNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export class StatusFilesNode extends ExplorerNode {
116116
let files = (this.status.files !== undefined && this.includeWorkingTree) ? this.status.files.length : 0;
117117

118118
if (this.status.upstream !== undefined) {
119-
const stats = await Container.git.getChangedFilesCount(this.repoPath, `${this.status.upstream}...`);
119+
const stats = await Container.git.getChangedFilesCount(this.repoPath, this.status.upstream);
120120
if (stats !== undefined) {
121-
files += stats.files;
121+
files = stats.files;
122122
}
123123
}
124124

0 commit comments

Comments
 (0)