void () { for (GitRepository repository: getRepositories()) { try { GitRevisionNumber revisionNumber = GitRevisionNumber.resolve(myProject, repository.getRoot(), GitTag.REFS_TAGS_PREFIX + myTagName); myDeletedTagTips.put(repository, revisionNumber.asString()); } catch (VcsException e) { String title; if (!GitUtil.justOneGitRepository(myProject)) { title = GitBundle.message("delete.tag.operation.could.not.find.tag.in", repository.getPresentableUrl()); } else { title = GitBundle.message("delete.tag.operation.could.not.find.tag", myTagName); } fatalError(title, ""); return; } } while (hasMoreRepositories()) { GitRepository repository = next(); GitCommandResult result = myGit.deleteTag(repository, myTagName); if (result.success()) { repository.getRepositoryFiles().refreshTagsFiles(); markSuccessful(repository); } else { fatalError(GitBundle.message("delete.tag.operation.tag.was.not.deleted", myTagName), result); return; } } notifySuccess(); }