Skip to content
Snippets Groups Projects
Verified Commit 215dfcc6 authored by Iuri Jikidze's avatar Iuri Jikidze Committed by Newbyte
Browse files

pmb.helpers.git: fix get_upstream_remote() (MR 2496)

Fixes bec2a4b1

[ci:skip-build]: already built successfully in CI
parent bec2a4b1
No related branches found
No related tags found
1 merge request!2496Fix: helpers: git get_upstream_remote()
Pipeline #210462 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.lower() in line for u in urls):
if any(u.lower() in line.lower() 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