mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
No shell needed when checking git version
This commit is contained in:
parent
398f779d92
commit
f033571d7e
@ -41,7 +41,7 @@ def _worktrees_supported():
|
|||||||
'''
|
'''
|
||||||
git_version = subprocess.Popen(
|
git_version = subprocess.Popen(
|
||||||
['git', '--version'],
|
['git', '--version'],
|
||||||
shell=True,
|
shell=False,
|
||||||
close_fds=True,
|
close_fds=True,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE).communicate()[0]
|
stderr=subprocess.PIPE).communicate()[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user