mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-28 02:11:30 +02:00
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:
parent
695a2b98df
commit
28871199df
@ -28,7 +28,7 @@ __missing_files__ = set()
|
|||||||
def add(file_name):
|
def add(file_name):
|
||||||
if not os.path.exists(file_name):
|
if not os.path.exists(file_name):
|
||||||
if __checkout_missing__:
|
if __checkout_missing__:
|
||||||
subprocess.call("git checkout \"" + file_name.strip() + "\"")
|
subprocess.call("git checkout \"" + file_name.strip() + "\"", shell=True)
|
||||||
else:
|
else:
|
||||||
__missing_files__.add(file_name)
|
__missing_files__.add(file_name)
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user