X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/7ac8ebdbb3f8a9bc3504ad26ea08075f3b32f379..514db06cdc7860290aa0f14328cdb8c685047883:/wizard/deploy.py diff --git a/wizard/deploy.py b/wizard/deploy.py index ac7dae8..6510910 100644 --- a/wizard/deploy.py +++ b/wizard/deploy.py @@ -243,6 +243,7 @@ class Deployment(object): if not compare_tags(self.app_version.pristine_tag): raise InconsistentPristineTagError(self.app_version.pristine_tag) if not compare_tags(self.app_version.wizard_tag): + # XXX Try remastering raise InconsistentWizardTagError(self.app_version.wizard_tag) parent = repo_rev_parse(self.app_version.wizard_tag) merge_base = shell.safeCall("git", "merge-base", parent, "HEAD", strip=True) @@ -666,7 +667,8 @@ class InconsistentWizardTagError(Error): return """ ERROR: Local wizard tag %s did not match repository's. This -probably means an upstream rebase occurred.""" % self.tag +probably means an upstream rebase occurred. Try +'git fetch --tags && wizard remaster'.""" % self.tag class HeadNotDescendantError(Error): """HEAD is not connected to tag."""