Skip to content

Commit e7aab45

Browse files
committed
rebase & lint errors
1 parent 406263f commit e7aab45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/env/node/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function getStdinUniqueKey(): number {
165165
type ExitCodeOnlyGitCommandOptions = GitCommandOptions & { exitCodeOnly: true };
166166
export type PushForceOptions = { withLease: true; ifIncludes?: boolean } | { withLease: false; ifIncludes?: never };
167167

168-
const tagErrorAndReason = [
168+
const tagErrorAndReason: [RegExp, TagErrorReason][] = [
169169
[GitErrors.tagAlreadyExists, TagErrorReason.TagAlreadyExists],
170170
[GitErrors.tagNotFound, TagErrorReason.TagNotFound],
171171
[GitErrors.invalidTagName, TagErrorReason.InvalidTagName],

src/env/node/git/localGitProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
12671267
@log()
12681268
async createTag(repoPath: string, name: string, ref: string, message?: string): Promise<void> {
12691269
try {
1270-
await this.git.tag(repoPath, name, ref, ...(message?.length !== 0 ? ['-m', message] : []));
1270+
await this.git.tag(repoPath, name, ref, ...(message != null && message.length > 0 ? ['-m', message] : []));
12711271
} catch (ex) {
12721272
if (ex instanceof TagError) {
12731273
throw ex.WithTag(name).WithAction('create');

0 commit comments

Comments
 (0)