diff --git a/commitizen/cmd.py b/commitizen/cmd.py index ba48ac7881..4ae1b3bd30 100644 --- a/commitizen/cmd.py +++ b/commitizen/cmd.py @@ -33,7 +33,7 @@ def run(cmd: str, env=None) -> Command: env = {**os.environ, **env} process = subprocess.Popen( cmd, - shell=True, + shell=False if os.name == "nt" else True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE,