X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/blobdiff_plain/2c8389daba45bef303079dfe15e4c47904001047..30380c4b5b28df9670ea5952e14bc485d1d34133:/wizard/command/restore.py diff --git a/wizard/command/restore.py b/wizard/command/restore.py index 060ab78..eae157f 100644 --- a/wizard/command/restore.py +++ b/wizard/command/restore.py @@ -38,12 +38,11 @@ def main(argv, baton): d.verify() d.verifyConfigured() tag = "%s-%s" % (d.application.name, version) - sh = shell.Shell() try: - sh.call("git", "rev-parse", tag) + shell.call("git", "rev-parse", tag) except shell.CallError: raise Exception("Tag %s doesn't exist in repository" % tag) - sh.call("git", "reset", "-q", "--hard", tag) + shell.call("git", "reset", "-q", "--hard", tag) d.restore(backup, options) def parse_args(argv, baton):