diff --git a/lib/lifecycles/tag.js b/lib/lifecycles/tag.js index 9de7cd978..29b60cf82 100644 --- a/lib/lifecycles/tag.js +++ b/lib/lifecycles/tag.js @@ -25,7 +25,7 @@ function execTag (newVersion, pkgPrivate, args) { } checkpoint(args, 'tagging release %s%s', [args.tagPrefix, newVersion]) return runExec(args, 'git tag ' + tagOption + args.tagPrefix + newVersion + ' -m "' + formatCommitMessage(args.message, newVersion) + '"') - .then(() => runExec(args, 'git rev-parse --abbrev-ref HEAD')) + .then(() => runExec('', 'git rev-parse --abbrev-ref HEAD')) .then((currentBranch) => { let message = 'git push --follow-tags origin ' + currentBranch.trim() if (pkgPrivate !== true) {