Skip to content

Commit 5c1505f

Browse files
authored
fix: set shell to False if running subprocess on Windows
1 parent f1ece99 commit 5c1505f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/cmd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def run(cmd: str, env=None) -> Command:
3333
env = {**os.environ, **env}
3434
process = subprocess.Popen(
3535
cmd,
36-
shell=True,
36+
shell=False if os.name == 'nt' else True,
3737
stdout=subprocess.PIPE,
3838
stderr=subprocess.PIPE,
3939
stdin=subprocess.PIPE,

0 commit comments

Comments
 (0)