From da7336f4f01e494b11d9fa6382384a0bdcd9bf83 Mon Sep 17 00:00:00 2001 From: Jonas Keeling Date: Mon, 30 Sep 2024 16:44:22 +0200 Subject: [PATCH] fix: source layout check --- src/karapace/backup/backends/v3/schema_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/karapace/backup/backends/v3/schema_tool.py b/src/karapace/backup/backends/v3/schema_tool.py index 65a3ea2bf..340be2477 100644 --- a/src/karapace/backup/backends/v3/schema_tool.py +++ b/src/karapace/backup/backends/v3/schema_tool.py @@ -86,7 +86,7 @@ def check_compatibility(git_target: str) -> None: for file in schema_directory.glob(f"*{extension}"): relative = relative_path(file) - if source_layout: + if not source_layout: relative = pathlib.Path(*relative.parts[1:]) with subprocess.Popen( ["git", "show", f"{git_target}:{relative}"],