Navigation Menu

Skip to content

Commit

Permalink
fix: don't pass args to git rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 5, 2019
1 parent 95a50c6 commit 1ac72f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lifecycles/tag.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 1ac72f7

Please sign in to comment.