Skip to content

Commit 9b2675c

Browse files
author
Nick Pape
committed
Dont show git error
1 parent ec56be5 commit 9b2675c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎libraries/package-deps-hash/src/getPackageDeps.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ export function gitHashFiles(filesToHash: string[], packagePath: string): Map<st
100100
export function gitLsTree(path: string): string {
101101
return child_process.execSync(
102102
`git ls-tree HEAD -r`,
103-
{ cwd: path }).toString();
103+
{
104+
cwd: path,
105+
stdio: 'pipe'
106+
}).toString();
104107
}
105108

106109
/**
@@ -109,7 +112,10 @@ export function gitLsTree(path: string): string {
109112
export function gitStatus(path: string): string {
110113
return child_process.execSync(
111114
`git status -s -u .`,
112-
{ cwd: path }).toString();
115+
{
116+
cwd: path,
117+
stdio: 'pipe'
118+
}).toString();
113119
}
114120

115121
/**

0 commit comments

Comments
 (0)