diff --git a/src/execGit.js b/src/execGit.js index 826ae8df3..557fb7d97 100644 --- a/src/execGit.js +++ b/src/execGit.js @@ -5,13 +5,9 @@ const execa = require('execa') module.exports = async function execGit(cmd, options = {}) { debug('Running git command', cmd) - try { - const { stdout } = await execa('git', [].concat(cmd), { - ...options, - cwd: options.cwd || process.cwd() - }) - return stdout - } catch (err) { - throw new Error(err) - } + const { stdout } = await execa('git', [].concat(cmd), { + ...options, + cwd: options.cwd || process.cwd() + }) + return stdout }