Skip to content
Snippets Groups Projects
Unverified Commit bec2a4b1 authored by J. Pablo Navarro's avatar J. Pablo Navarro Committed by Caleb Connolly
Browse files

helpers: git: ignore case in get_upstream_remote()

parent 472726a9
No related branches found
No related tags found
1 merge request!2494Checking url.lower() is in line
Pipeline #210442 failed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment