forked from Mirror/pmbootstrap
helpers: git: ignore case in get_upstream_remote()
This commit is contained in:
parent
472726a9dc
commit
bec2a4b154
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ def get_upstream_remote(aports: Path) -> str:
|
||||||
urls = pmb.config.git_repos[name_repo]
|
urls = pmb.config.git_repos[name_repo]
|
||||||
lines = list_remotes(aports)
|
lines = list_remotes(aports)
|
||||||
for line in lines:
|
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]
|
return line.split("\t", 1)[0]
|
||||||
|
|
||||||
# Fallback to old URLs, in case the migration was not done yet
|
# Fallback to old URLs, in case the migration was not done yet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue