Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c955f2e

Browse files
my1e5AdrianDC
authored andcommittedAug 22, 2024
fix: set shell to False if running subprocess on Windows
1 parent 1847e1d commit c955f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎commitizen/cmd.py

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.