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

Fixes bec2a4b154

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Iuri Jikidze 2024-11-18 10:36:29 +00:00 committed by Newbyte
parent bec2a4b154
commit 215dfcc663
No known key found for this signature in database
GPG key ID: ACD854892B38D898

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.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