Added missing wait after git-version call in wrapper

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce 2008-10-28 08:33:34 -07:00
parent 7efd1a5b23
commit 1619134720

1
repo
View File

@ -202,6 +202,7 @@ def _CheckGitVersion():
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
ver_str = proc.stdout.read().strip() ver_str = proc.stdout.read().strip()
proc.stdout.close() proc.stdout.close()
proc.wait()
if not ver_str.startswith('git version '): if not ver_str.startswith('git version '):
print >>sys.stderr, 'error: "%s" unsupported' % ver_str print >>sys.stderr, 'error: "%s" unsupported' % ver_str