We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c297b5a commit b18e92fCopy full SHA for b18e92f
src/main.ts
@@ -81,14 +81,13 @@ if (exitCode) {
81
const tags = stdout.split(/\r?\n/g);
82
console.assert(tags.length === 1, `tags=${tags} longer than 1`);
83
pushRefspec = tags[0];
84
- console.assert(pushForce, "push-force: false never updates tag");
85
}
86
87
if (pushForce == null) {
88
const { exitCode } = await $({
89
cwd: rootPath,
90
- reject: false,
91
- })`git show-ref --verify refs/tags/${pushRefspec}`;
+ reject: false
+ })`git symbolic-ref HEAD`;
92
if (exitCode) {
93
pushForce = true;
94
} else {
0 commit comments