No shell needed when checking git version

This commit is contained in:
Erik Johnson 2015-08-24 11:32:51 -05:00
parent 398f779d92
commit f033571d7e

View File

@ -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]