From 1ac72f74fe447121c0096915955732f7d84b5dc3 Mon Sep 17 00:00:00 2001 From: bcoe Date: Sun, 5 May 2019 14:51:09 -0700 Subject: [PATCH] fix: don't pass args to git rev-parse --- lib/lifecycles/tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {