def run(self, sign=False):
        repo = self.get_repo()
        if not repo:
            return

        tags = self.get_tags(repo, annotate=False)

        def on_done(name):
            name = name.strip()
            if not name:
                return

            if name in tags:
                if sublime.ok_cancel_dialog(name % TAG_FORCE, 'Overwrite'):
                    self.on_name(repo, sign, name, force=True)
            else:
                self.on_name(repo, sign, name)

        self.window.show_input_panel('Tag:', '', on_done, noop, noop)
dataset/ETHPy150Open SublimeGit/SublimeGit/sgit/tag.py/GitAddTagCommand.run/swapped operands of `%`