Skip to content

Commit

Permalink
Hide error outputs from checking for git root (#157851)
Browse files Browse the repository at this point in the history
## Summary
Addresses #157341 

The error comes because STDERR by default is piped to the parent
process's stderr.
- Quench error output of git rev-parse

### Checklist

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
delanni and kibanamachine authored May 22, 2023
1 parent 363f2b5 commit 8a081dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-repo-packages/modern/get_git_repo_root.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getGitRepoRootSync(repoRoot) {
cwd: repoRoot,
encoding: 'utf8',
maxBuffer: Infinity,
stdio: 'pipe',
});

const firstLine = stdout.split('\n')[0];
Expand Down

0 comments on commit 8a081dc

Please sign in to comment.