Skip to content

Commit

Permalink
fix piped telemetry error output (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jul 5, 2022
1 parent 2f56664 commit e4b2dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/rare-elephants-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/telemetry': patch
---

Fix an issue where handled error output was piped to the user
2 changes: 1 addition & 1 deletion packages/telemetry/src/project-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (_) {
Expand Down

0 comments on commit e4b2dca

Please sign in to comment.