diff --git a/.gitignore b/.gitignore index a81c8ee..b6b93ac 100644 --- a/.gitignore +++ b/.gitignore @@ -136,3 +136,5 @@ dmypy.json # Cython debug symbols cython_debug/ + +scripts/firmware.cfg diff --git a/scripts/firmware.py b/scripts/firmware.py index da24330..13f02da 100755 --- a/scripts/firmware.py +++ b/scripts/firmware.py @@ -2244,7 +2244,11 @@ def verify_repository(self) -> bool: check=True, ) origin_url = result.stdout.strip().lower() - if origin_url != "https://github.com/arksine/katapult".lower(): + # Normalize URLs by removing '.git' at the end if present + normalized_url = origin_url.rstrip(".git") + expected_url = "https://github.com/arksine/katapult".rstrip(".git") + + if normalized_url != expected_url: Utils.error_msg(f"Unexpected repository URL: {origin_url}") return False except subprocess.CalledProcessError as e: