# on Windows, a path can contain colons and backslashes and has to be converted:
case "$(uname)" in
- CYGWIN*|MSYS*)
- # transform D:\path\to\venv to /d/path/to/venv on MSYS
+ CYGWIN*|MSYS*|MINGW*)
+ # transform D:\path\to\venv to /d/path/to/venv on MSYS and MINGW
# and to /cygdrive/d/path/to/venv on Cygwin
VIRTUAL_ENV=$(cygpath "__VENV_DIR__")
export VIRTUAL_ENV
--- /dev/null
+Fix the conversion of the :envvar:`!VIRTUAL_ENV` path in the activate script in :mod:`venv` when running in Git Bash for Windows.