Windows fixes for git widgets

This commit is contained in:
Matthew Breedlove committed 2025-08-20 03:09:20 -04:00
1 parent 27632788a5
commit 479e139141
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ export class GitBranchWidget implements Widget {
private getGitBranch(): string | null {
try {
const branch = execSync('git branch --show-current 2>/dev/null', {
const branch = execSync('git branch --show-current', {
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'ignore']
}).trim();
+2 -2
View File
@@ -33,12 +33,12 @@ export class GitChangesWidget implements Widget {
let totalInsertions = 0;
let totalDeletions = 0;
const unstagedStat = execSync('git diff --shortstat 2>/dev/null', {
const unstagedStat = execSync('git diff --shortstat', {
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'ignore']
}).trim();
const stagedStat = execSync('git diff --cached --shortstat 2>/dev/null', {
const stagedStat = execSync('git diff --cached --shortstat', {
encoding: 'utf8',
stdio: ['pipe', 'pipe', 'ignore']
}).trim();