mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Hide error outputs from checking for git root (#157851)
## 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 <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
363f2b5e6a
commit
8a081dc308
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ function getGitRepoRootSync(repoRoot) {
|
|||
cwd: repoRoot,
|
||||
encoding: 'utf8',
|
||||
maxBuffer: Infinity,
|
||||
stdio: 'pipe',
|
||||
});
|
||||
|
||||
const firstLine = stdout.split('\n')[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue