##// END OF EJS Templates
Remove one unnecessary shell=True option in subprocess....
Matthias Bussonnier -
Show More
@@ -55,10 +55,10 b' def pkg_commit_hash(pkg_path):'
55 55 return "installation", _sysinfo.commit
56 56
57 57 # maybe we are in a repository
58 proc = subprocess.Popen('git rev-parse --short HEAD',
58 proc = subprocess.Popen('git rev-parse --short HEAD'.split(' '),
59 59 stdout=subprocess.PIPE,
60 60 stderr=subprocess.PIPE,
61 cwd=pkg_path, shell=True)
61 cwd=pkg_path)
62 62 repo_commit, _ = proc.communicate()
63 63 if repo_commit:
64 64 return 'repository', repo_commit.strip().decode('ascii')
General Comments 0
You need to be logged in to leave comments. Login now