def run(self):
sha = VersionUtils.run_git_command(["<STR_LIT>", "<STR_LIT>"], self.git_dir)<EOL>tag = self.distribution.get_version()<EOL>if self.has_tag(tag, sha):<EOL><INDENT>tags_sha = VersionUtils.run_git_command(["<STR_LIT>", tag], self.git_dir)<EOL>if sha != tags_sha:<EOL><INDENT>logger.error(<EOL>"<STR_LIT>".format(<EOL>tag<EOL>)<EOL>)<EOL>return<EOL><DEDENT>else:<EOL><INDENT>logger.info(<EOL>"<STR_LIT>".format(<EOL>tag<EOL>)<EOL>)<EOL>return<EOL><DEDENT><DEDENT>logger.info("<STR_LIT>".format(tag, sha))<EOL>if not self.dry_run:<EOL><INDENT>VersionUtils.run_git_command(<EOL>["<STR_LIT>", "<STR_LIT>", '<STR_LIT>', tag, sha], self.git_dir, throw_on_error=True<EOL>)<EOL>logger.info("<STR_LIT>".format(tag, self.remote))<EOL>VersionUtils.run_git_command(<EOL>["<STR_LIT>", self.remote, tag], self.git_dir, throw_on_error=True<EOL>)<EOL><DEDENT>
Will tag the currently active git commit id with the next release tag id