We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95a50c6 commit 1ac72f7Copy full SHA for 1ac72f7
lib/lifecycles/tag.js
@@ -25,7 +25,7 @@ function execTag (newVersion, pkgPrivate, args) {
25
}
26
checkpoint(args, 'tagging release %s%s', [args.tagPrefix, newVersion])
27
return runExec(args, 'git tag ' + tagOption + args.tagPrefix + newVersion + ' -m "' + formatCommitMessage(args.message, newVersion) + '"')
28
- .then(() => runExec(args, 'git rev-parse --abbrev-ref HEAD'))
+ .then(() => runExec('', 'git rev-parse --abbrev-ref HEAD'))
29
.then((currentBranch) => {
30
let message = 'git push --follow-tags origin ' + currentBranch.trim()
31
if (pkgPrivate !== true) {
0 commit comments