0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix piped telemetry error output (#3822)

This commit is contained in:
Fred K. Schott 2022-07-05 12:46:57 -07:00 committed by GitHub
parent 2f56664f85
commit e4b2dca1f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/telemetry': patch
---
Fix an issue where handled error output was piped to the user

View file

@ -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 (_) {