fix piped telemetry error output (#3822)
This commit is contained in:
parent
2f56664f85
commit
e4b2dca1f3
2 changed files with 6 additions and 1 deletions
5
.changeset/rare-elephants-add.md
Normal file
5
.changeset/rare-elephants-add.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/telemetry': patch
|
||||
---
|
||||
|
||||
Fix an issue where handled error output was piped to the user
|
|
@ -67,7 +67,7 @@ function getProjectIdFromGit(): string | null {
|
|||
try {
|
||||
const originBuffer = execSync(`git rev-list --max-parents=0 HEAD`, {
|
||||
timeout: 500,
|
||||
stdio: [0, 'pipe', 0],
|
||||
stdio: ['ignore', 'pipe', 'ignore'],
|
||||
});
|
||||
return String(originBuffer).trim();
|
||||
} catch (_) {
|
||||
|
|
Loading…
Reference in a new issue