Skip to content

Commit 1ac72f7

Browse files
committed
fix: don't pass args to git rev-parse
1 parent 95a50c6 commit 1ac72f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lifecycles/tag.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function execTag (newVersion, pkgPrivate, args) {
2525
}
2626
checkpoint(args, 'tagging release %s%s', [args.tagPrefix, newVersion])
2727
return runExec(args, 'git tag ' + tagOption + args.tagPrefix + newVersion + ' -m "' + formatCommitMessage(args.message, newVersion) + '"')
28-
.then(() => runExec(args, 'git rev-parse --abbrev-ref HEAD'))
28+
.then(() => runExec('', 'git rev-parse --abbrev-ref HEAD'))
2929
.then((currentBranch) => {
3030
let message = 'git push --follow-tags origin ' + currentBranch.trim()
3131
if (pkgPrivate !== true) {

0 commit comments

Comments
 (0)