]> scripts.mit.edu Git - wizard.git/commitdiff
Use wizard.shell
authorAlex Dehnert <adehnert@mit.edu>
Wed, 26 May 2010 06:36:34 +0000 (02:36 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Sun, 30 May 2010 23:06:35 +0000 (19:06 -0400)
Signed-off-by: Alex Dehnert <adehnert@mit.edu>
wizard/app/__init__.py

index 7c1c6388f4ed4b25a6a7f86813d01c94ee6c330b..8cf35210f23173d91353db75f66da912ec347953 100644 (file)
@@ -413,10 +413,9 @@ class Application(object):
         in git that matches the specified pattern.
         This assumes that the current working directory is the deployment.
         """
+        sh = wizard.shell.Shell()
         cmd = ['git', 'describe', '--match', tagPattern, ]
-        p = subprocess.Popen(cmd, stdout=subprocess.PIPE, )
-        tag, _ = p.communicate()
-        tag = tag.strip()
+        tag = sh.call(*cmd, strip=True)
         if tag and len(tag) > len(preStrip) and tag[:len(preStrip)] == preStrip:
             tag = tag[len(preStrip):]
         if not tag: return None