Allow empty tag message in git (#106751)

This commit is contained in:
MoQ93 2020-09-16 10:22:19 +02:00 committed by GitHub
parent f62d21ce88
commit 17cdb69891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1867,8 +1867,7 @@ export class CommandCenter {
});
const name = inputTagName.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.$/g, '-');
const message = inputMessage || name;
await repository.tag(name, message);
await repository.tag(name, inputMessage);
}
@command('git.deleteTag', { repository: true })