From 8e04032e623bc1be94f50b8eff1286ca095a8bf9 Mon Sep 17 00:00:00 2001 From: "Gregory W. Smith II" Date: Wed, 13 Feb 2019 21:03:44 -0800 Subject: [PATCH] Suppress output for git command Adds the `silent: true` option to the `sh.exec` call which is used to determine the currently active git branch. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fb36e7a..bf577c2 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ function loadConfig () { function getEnvIdFromBranch () { try { - let branch = sh.exec('git name-rev HEAD --name-only').stdout + let branch = sh.exec('git name-rev HEAD --name-only', {silent: true}).stdout branch = _.last(_.split(branch, '/'))