From 5a6f550a66c50ec4cbbb753171b1593abb92464c Mon Sep 17 00:00:00 2001 From: Alex Dehnert Date: Wed, 26 May 2010 02:36:34 -0400 Subject: [PATCH] Use wizard.shell Signed-off-by: Alex Dehnert --- wizard/app/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wizard/app/__init__.py b/wizard/app/__init__.py index 7c1c638..8cf3521 100644 --- a/wizard/app/__init__.py +++ b/wizard/app/__init__.py @@ -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 -- 2.45.2