do not shell=True
This commit is contained in:
parent
c008ac8bb9
commit
43a433d37a
1 changed files with 1 additions and 2 deletions
|
|
@ -513,8 +513,7 @@ class SCM(object):
|
|||
if self.scmtype.startswith('GIT'):
|
||||
cmd = ['git', 'rev-parse', 'HEAD']
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
|
||||
cwd=self.sourcedir,
|
||||
shell=True)
|
||||
cwd=self.sourcedir,)
|
||||
out, _ = proc.communicate()
|
||||
status = proc.wait()
|
||||
if status != 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue