Windows 10 + git: Installing third party packages from git branch with uppercase characters in branch names does not work
What were you trying to do?
Install a third party package from specific git branch
What steps did you take to trigger the issue?
Start packae manager with "Cogwheel => Third Party Packages' Enter a git repository with specific branch where branch name uses upercase letters e.g. git+https://github.com/frodeseverin/html5validator.git@JVM_UTF-8
What did you expect to happen?
Installation of third party pacage
What actually happened?
pip starts up with erraneous cammand line Collecting git+https://github.com/frodeseverin/html5validator.git@jvm_utf-8 Note conversion to lowercase in branc name (@jvm_utf-8)
Rest of output from pip: Cloning https://github.com/frodeseverin/html5validator.git (to revision jvm_utf-8) to c:\users\frodeseverinhatlevik\appdata\local\temp\pip-req-build-n0lakpao Running command git clone --filter=blob:none --quiet https://github.com/frodeseverin/html5validator.git 'C:\Users\FrodeSeverinHatlevik\AppData\Local\Temp\pip-req-build-n0lakpao' WARNING: Did not find branch or tag 'jvm_utf-8', assuming revision or ref. Running command git checkout -q jvm_utf-8 error: pathspec 'jvm_utf-8' did not match any file(s) known to git error: subprocess-exited-with-error ...

Operating System Version
Windows 10 H22
Mu Version
1.2.0
Other Info
git on Windows 10 (Git Bash) works fine with uppercase letters in branch names.
Editor Log
Logs relating to this issue
2023-01-10 09:41:44,426 - mu.logic:1439(show_admin) INFO: Showing admin with logs from C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\Logs\mu.log
2023-01-10 09:41:44,426 - mu.virtual_environment:984(installed_packages) INFO: Discovering installed third party modules in venv.
2023-01-10 09:41:44,427 - mu.virtual_environment:139(run_blocking) INFO: About to run blocking C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\mu_venv-38-20221207-121543\scripts\pip.exe with args ['list', '--disable-pip-version-check'] and envvars {}
2023-01-10 09:41:45,395 - mu.virtual_environment:189(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2023-01-10 09:41:45,395 - mu.virtual_environment:274(run) DEBUG: Process output: Package Version
------------------ ---------
asttokens 2.1.0
async-generator 1.10
attrs 22.1.0
backcall 0.2.0
backports.zoneinfo 0.2.1
cachetools 5.2.0
certifi 2022.12.7
cffi 1.15.1
charset-normalizer 2.1.1
click 8.1.3
colorama 0.4.6
cssselect 1.2.0
cssutils 2.6.0
decorator 5.1.1
defusedxml 0.7.1
Django 4.1.4
entrypoints 0.4
et-xmlfile 1.1.0
exceptiongroup 1.0.4
executing 1.2.0
filelock 3.9.0
Flask 2.0.3
h11 0.14.0
html5validator 0.4.2
idna 3.4
ipykernel 5.5.6
ipython 8.6.0
ipython-genutils 0.2.0
itsdangerous 2.1.2
jedi 0.18.1
Jinja2 3.1.2
jupyter_client 7.4.5
jupyter_core 5.0.0
lxml 4.9.2
MarkupSafe 2.1.1
matplotlib-inline 0.1.6
nest-asyncio 1.5.6
numpy 1.23.4
odfpy 1.4.1
openpyxl 3.0.10
outcome 1.2.0
packaging 22.0
pandas 1.5.2
parsel 1.7.0
parso 0.8.3
pgzero 1.2.1
pickleshare 0.7.5
pip 22.3.1
platformdirs 2.5.4
premailer 3.10.0
prompt-toolkit 3.0.32
pure-eval 0.2.2
pycparser 2.21
pygame 2.1.2
Pygments 2.13.0
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2022.7
pywin32 305
PyYAML 6.0
pyzmq 24.0.1
requests 2.28.1
requests-file 1.5.1
selenium 4.7.2
selenium-requests 2.0.2
setuptools 65.5.1
six 1.16.0
sniffio 1.3.0
sortedcontainers 2.4.0
sqlparse 0.4.3
stack-data 0.6.1
tldextract 3.4.0
tornado 6.2
traitlets 5.5.0
trio 0.22.0
trio-websocket 0.9.2
tzdata 2022.7
urllib3 1.26.13
w3lib 2.1.1
wcag-zoo 0.2.6
wcwidth 0.2.5
webcolors 1.12
Werkzeug 2.2.2
wheel 0.38.4
wsproto 1.2.0
xtermcolor 1.3
2023-01-10 09:41:45,395 - mu.virtual_environment:993(installed_packages) INFO: ['async-generator', 'attrs', 'backports.zoneinfo', 'cachetools', 'certifi', 'cffi', 'charset-normalizer', 'cssselect', 'cssutils', 'defusedxml', 'Django', 'et-xmlfile', 'exceptiongroup', 'filelock', 'h11', 'html5validator', 'idna', 'lxml', 'odfpy', 'openpyxl', 'outcome', 'packaging', 'pandas', 'parsel', 'premailer', 'pycparser', 'PySocks', 'pytz', 'PyYAML', 'requests', 'requests-file', 'selenium', 'selenium-requests', 'sniffio', 'sortedcontainers', 'sqlparse', 'tldextract', 'trio', 'trio-websocket', 'tzdata', 'urllib3', 'w3lib', 'wcag-zoo', 'webcolors', 'wsproto', 'xtermcolor']
2023-01-10 09:42:01,665 - mu.logic:1513(sync_package_state) INFO: Synchronize package states...
2023-01-10 09:42:01,666 - mu.logic:1514(sync_package_state) INFO: Old: {'cssutils', 'pandas', 'pycparser', 'packaging', 'filelock', 'html5validator', 'pyyaml', 'charset-normalizer', 'h11', 'exceptiongroup', 'outcome', 'xtermcolor', 'backports.zoneinfo', 'lxml', 'et-xmlfile', 'django', 'idna', 'pytz', 'trio', 'wsproto', 'urllib3', 'async-generator', 'defusedxml', 'requests', 'openpyxl', 'sniffio', 'cssselect', 'sortedcontainers', 'selenium', 'odfpy', 'cachetools', 'wcag-zoo', 'premailer', 'tldextract', 'sqlparse', 'attrs', 'cffi', 'parsel', 'trio-websocket', 'requests-file', 'webcolors', 'selenium-requests', 'tzdata', 'pysocks', 'certifi', 'w3lib'}
2023-01-10 09:42:01,666 - mu.logic:1515(sync_package_state) INFO: New: {'cssutils', 'pandas', 'pycparser', 'packaging', 'filelock', 'html5validator', 'pyyaml', 'charset-normalizer', 'h11', 'exceptiongroup', 'outcome', 'xtermcolor', 'backports.zoneinfo', 'lxml', 'et-xmlfile', 'django', 'idna', 'pytz', 'trio', 'wsproto', 'urllib3', 'async-generator', 'defusedxml', 'requests', 'openpyxl', 'sniffio', 'cssselect', 'sortedcontainers', 'selenium', 'cachetools', 'odfpy', 'wcag-zoo', 'premailer', 'tldextract', 'sqlparse', 'attrs', 'cffi', 'parsel', 'trio-websocket', 'git+https://github.com/frodeseverin/html5validator.git@jvm_utf-8', 'requests-file', 'webcolors', 'selenium-requests', 'tzdata', 'pysocks', 'certifi', 'w3lib'}
2023-01-10 09:42:01,666 - mu.logic:1519(sync_package_state) INFO: To add: {'git+https://github.com/frodeseverin/html5validator.git@jvm_utf-8'}
2023-01-10 09:42:01,666 - mu.logic:1520(sync_package_state) INFO: To remove: set()
2023-01-10 09:42:01,666 - mu.logic:1521(sync_package_state) INFO: Virtualenv: C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\mu_venv
2023-01-10 09:42:01,685 - mu.virtual_environment:967(install_user_packages) INFO: Installing user packages: git+https://github.com/frodeseverin/html5validator.git@jvm_utf-8
2023-01-10 09:42:01,685 - mu.virtual_environment:152(run) INFO: About to run C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\mu_venv-38-20221207-121543\scripts\pip.exe with args ['install', '--disable-pip-version-check', '--upgrade', 'git+https://github.com/frodeseverin/html5validator.git@jvm_utf-8'] and envvars {}
2023-01-10 09:42:18,474 - mu.logic:1439(show_admin) INFO: Showing admin with logs from C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\Logs\mu.log
2023-01-10 09:42:18,474 - mu.virtual_environment:984(installed_packages) INFO: Discovering installed third party modules in venv.
2023-01-10 09:42:18,474 - mu.virtual_environment:139(run_blocking) INFO: About to run blocking C:\Users\FrodeSeverinHatlevik\AppData\Local\python\mu\mu_venv-38-20221207-121543\scripts\pip.exe with args ['list', '--disable-pip-version-check'] and envvars {}
2023-01-10 09:42:19,239 - mu.virtual_environment:189(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2023-01-10 09:42:19,239 - mu.virtual_environment:274(run) DEBUG: Process output: Package Version
------------------ ---------
asttokens 2.1.0
async-generator 1.10
attrs 22.1.0
backcall 0.2.0
backports.zoneinfo 0.2.1
cachetools 5.2.0
certifi 2022.12.7
cffi 1.15.1
charset-normalizer 2.1.1
click 8.1.3
colorama 0.4.6
cssselect 1.2.0
cssutils 2.6.0
decorator 5.1.1
defusedxml 0.7.1
Django 4.1.4
entrypoints 0.4
et-xmlfile 1.1.0
exceptiongroup 1.0.4
executing 1.2.0
filelock 3.9.0
Flask 2.0.3
h11 0.14.0
html5validator 0.4.2
idna 3.4
ipykernel 5.5.6
ipython 8.6.0
ipython-genutils 0.2.0
itsdangerous 2.1.2
jedi 0.18.1
Jinja2 3.1.2
jupyter_client 7.4.5
jupyter_core 5.0.0
lxml 4.9.2
MarkupSafe 2.1.1
matplotlib-inline 0.1.6
nest-asyncio 1.5.6
numpy 1.23.4
odfpy 1.4.1
openpyxl 3.0.10
outcome 1.2.0
packaging 22.0
pandas 1.5.2
parsel 1.7.0
parso 0.8.3
pgzero 1.2.1
pickleshare 0.7.5
pip 22.3.1
platformdirs 2.5.4
premailer 3.10.0
prompt-toolkit 3.0.32
pure-eval 0.2.2
pycparser 2.21
pygame 2.1.2
Pygments 2.13.0
PySocks 1.7.1
python-dateutil 2.8.2
pytz 2022.7
pywin32 305
PyYAML 6.0
pyzmq 24.0.1
requests 2.28.1
requests-file 1.5.1
selenium 4.7.2
selenium-requests 2.0.2
setuptools 65.5.1
six 1.16.0
sniffio 1.3.0
sortedcontainers 2.4.0
sqlparse 0.4.3
stack-data 0.6.1
tldextract 3.4.0
tornado 6.2
traitlets 5.5.0
trio 0.22.0
trio-websocket 0.9.2
tzdata 2022.7
urllib3 1.26.13
w3lib 2.1.1
wcag-zoo 0.2.6
wcwidth 0.2.5
webcolors 1.12
Werkzeug 2.2.2
wheel 0.38.4
wsproto 1.2.0
xtermcolor 1.3
2023-01-10 09:42:19,239 - mu.virtual_environment:993(installed_packages) INFO: ['async-generator', 'attrs', 'backports.zoneinfo', 'cachetools', 'certifi', 'cffi', 'charset-normalizer', 'cssselect', 'cssutils', 'defusedxml', 'Django', 'et-xmlfile', 'exceptiongroup', 'filelock', 'h11', 'html5validator', 'idna', 'lxml', 'odfpy', 'openpyxl', 'outcome', 'packaging', 'pandas', 'parsel', 'premailer', 'pycparser', 'PySocks', 'pytz', 'PyYAML', 'requests', 'requests-file', 'selenium', 'selenium-requests', 'sniffio', 'sortedcontainers', 'sqlparse', 'tldextract', 'trio', 'trio-websocket', 'tzdata', 'urllib3', 'w3lib', 'wcag-zoo', 'webcolors', 'wsproto', 'xtermcolor']