]> 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 8665524349f051127828d0c99af217df78bcc3c1..535fdb307b46026c6e64abb356fe873256367f51 100644 (file)
@@ -5,10 +5,9 @@ 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):