Skip to content

Commit b18e92f

Browse files
authored
try this
1 parent c297b5a commit b18e92f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ if (exitCode) {
8181
const tags = stdout.split(/\r?\n/g);
8282
console.assert(tags.length === 1, `tags=${tags} longer than 1`);
8383
pushRefspec = tags[0];
84-
console.assert(pushForce, "push-force: false never updates tag");
8584
}
8685
}
8786
if (pushForce == null) {
8887
const { exitCode } = await $({
8988
cwd: rootPath,
90-
reject: false,
91-
})`git show-ref --verify refs/tags/${pushRefspec}`;
89+
reject: false
90+
})`git symbolic-ref HEAD`;
9291
if (exitCode) {
9392
pushForce = true;
9493
} else {

0 commit comments

Comments
 (0)