]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/blacklist.py
Convert ad hoc shell calls to singleton instance; fix upgrade bug.
[wizard.git] / wizard / command / blacklist.py
index bfed96442f9cca2a497d516ed0d59b6fcedef566..535fdb307b46026c6e64abb356fe873256367f51 100644 (file)
@@ -1,17 +1,13 @@
-import logging
 import os
-import optparse
-import sys
-import distutils.version
 
-from wizard import command, deploy, git, shell, util
+from wizard import command, shell, util
 
 def main(argv, baton):
     options, args = parse_args(argv, baton)
     reason = args[0]
-    sh = shell.Shell()
+    # XXX: this should be abstracted away!
     if os.path.exists(".git/WIZARD_REPO"):
-        util.chdir(sh.eval('git', 'config', 'remote.origin.url'))
+        util.chdir(shell.eval('git', 'config', 'remote.origin.url'))
     open('.scripts/blacklisted', 'w').write(reason + "\n")
 
 def parse_args(argv, baton):