1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

helpers: git: ignore case in get_upstream_remote()

This commit is contained in:
J. Pablo Navarro 2024-11-17 22:58:26 +01:00 committed by Caleb Connolly
parent 472726a9dc
commit bec2a4b154
No known key found for this signature in database
GPG key ID: 7930459FB9303217

View file

@ -116,7 +116,7 @@ def get_upstream_remote(aports: Path) -> str:
urls = pmb.config.git_repos[name_repo]
lines = list_remotes(aports)
for line in lines:
if any(u in line for u in urls):
if any(u.lower() in line for u in urls):
return line.split("\t", 1)[0]
# Fallback to old URLs, in case the migration was not done yet