Added missing shell parameter to subprocess.call() during file checkout.

This is a long-standing bug that has gone undetected until now.
This commit is contained in:
Adam Waldenberg 2012-11-03 01:25:53 +01:00
parent 695a2b98df
commit 28871199df

View File

@ -28,7 +28,7 @@ __missing_files__ = set()
def add(file_name):
if not os.path.exists(file_name):
if __checkout_missing__:
subprocess.call("git checkout \"" + file_name.strip() + "\"")
subprocess.call("git checkout \"" + file_name.strip() + "\"", shell=True)
else:
__missing_files__.add(file_name)
return True