diff --git a/src/apm.js b/src/apm.js index bb1869364071139..e3f4d84d9b523bc 100644 --- a/src/apm.js +++ b/src/apm.js @@ -27,7 +27,10 @@ const ROOT_DIR = join(__dirname, '..'); function gitRev() { try { - return execSync('git rev-parse --short HEAD', { encoding: 'utf-8' }).trim(); + return execSync('git rev-parse --short HEAD', { + encoding: 'utf-8', + stdio: ['ignore', 'pipe', 'ignore'], + }).trim(); } catch (e) { return null; }