git_deploy: compare upstream url to lowercase url during validation

SIgned-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-07-08 12:09:17 -04:00
parent 211c7e70e1
commit e20c12619b
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ class GitRepo:
upstream_url = self.upstream_url.lower()
if upstream_url[-4:] != ".git":
upstream_url += ".git"
if upstream_url != self.origin_url:
if upstream_url != self.origin_url.lower():
invalids.append(f"Unofficial remote url: {self.upstream_url}")
if self.git_branch != primary_branch or self.git_remote != "origin":
invalids.append(